in reply to Re^6: XML cleanup - regex or ?
in thread XML cleanup - regex or ?

I'm afraid I still don't get it.

He said he can't use an XML parser since he's getting XML parsing errors. If he correctly reported the problem, then he's mistaken. He's not getting XML parsing errors, so he can use an XML parser (as demonstrated). That's all I said.

If he is getting XML parsing errors, then he misreported the problem in the OP. Crafting a regular expression would probably be the simplest solution, but we can't help him craft one without knowing what it should do.