How can I remove junk from outside valid XML tags?

Gotobtaip

New Member
I have a series of XML files produced from a data playback utility. The utility produces correctly formed XML tags. Unfortunately, the utility isn't perfect. Some of the Java objects it attempts to serialize fail and they are simply inserted (as binary blobs) in between these other, valid XML tags.For example...\[code\]<track><cto>Valid_XML_HERE</cto>@Binary_Blob_of_Junk@<cto>(...)</cto></track>\[/code\]Environment is RHEL-5, which means Python 2.4, Perl, or SED/AWK solutions are usable.Any suggestions on how to remove the junk?
 
Back
Top