quick way to remove elements and text from xml
Posted on 2007-11-24
I have a large xml document, which contains some elements and text that I need to remove. For example,
<element attribute="new">text placed here</element>
The element and attribute are repeated often throughout the xml document, but with different text. Is there a quick way to remove all of these elements and the associated text and then output or produce the original xml document minus these elements and text?
If I had to do this by hand suffice to say it would take weeks.
Any help appreciated.