G
Guest
I have an XML in which I have to comment out the <responseopt> tag
the tags between this tag should not be commented
I plan to use regular expressions
The tags looks like this
<responseopt value="1"><someothertag></someothertag></responseopt>
<responseopt value="2"><someothertag></someothertag></responseopt>
Commenting the closing tag </responseopt> is easy. I just do a
replace(inputstring,"<responseopt>", "<!--<responseopt>-->"
how do I comment the opening tag.
So I need a regex feature which would search for a pattern beginging with
"<responseopt" and ending with ">" and I need to replace the ending part of
the string "-->" (the HTM comment closing)
Any suggestions????
the tags between this tag should not be commented
I plan to use regular expressions
The tags looks like this
<responseopt value="1"><someothertag></someothertag></responseopt>
<responseopt value="2"><someothertag></someothertag></responseopt>
Commenting the closing tag </responseopt> is easy. I just do a
replace(inputstring,"<responseopt>", "<!--<responseopt>-->"
how do I comment the opening tag.
So I need a regex feature which would search for a pattern beginging with
"<responseopt" and ending with ">" and I need to replace the ending part of
the string "-->" (the HTM comment closing)
Any suggestions????