Hi JohnBampton and mrame
Thanks for quick reply and sorry for late response but your suggested code won't seem to work.
OK let me open my floor and let you know the real requirement
INPUT xml fragment
<atlgrp><atl><!--E-->Text to remove<!--/E-->Inhibition of parkin function in Parkinson's disease through c-Abl–mediated tyrosine phosphorylation<!--E-->Another text to remove<!--/E--></atl><runtl>Inhibition <!--E-->one another text to remove<!--/E-->of parkin function in Parkinson's disease through c-Abl–mediated tyrosine phosphorylation</runtl></atlgrp>
OUTPUT Should be
<atlgrp><atl>Inhibition of parkin function in Parkinson's disease through c-Abl–mediated tyrosine phosphorylation</atl><runtl>Inhibition of parkin function in Parkinson's disease through c-Abl–mediated tyrosine phosphorylation</runtl></atlgrp>
As john as you could see, I cannot fix specific text in contains() function and mrame your code always find prceding and following instance and every text it gets remove.
Hope now all will be clear with my requirement and I am looking forward with your answer.
Thanks