Replacing XML Tags
Posted: Fri Feb 17, 2006 5:58 am
Hi All,
I need to insert a fixed string of characters before the actual tag value in an XML file. Here's what I want to do:
<sometag>data</sometag>
<anothertag />
needs to look like:
<cmn:sometag>data</cmn:sometag>
<cmn:anothertag />
I need the 'cmn:' inserted after the < or </ and before tag name. The / in the ending tag is causing me the trouble.
Any suggestions?
Thanks,
Doug
I need to insert a fixed string of characters before the actual tag value in an XML file. Here's what I want to do:
<sometag>data</sometag>
<anothertag />
needs to look like:
<cmn:sometag>data</cmn:sometag>
<cmn:anothertag />
I need the 'cmn:' inserted after the < or </ and before tag name. The / in the ending tag is causing me the trouble.
Any suggestions?
Thanks,
Doug