XML parsing - the ^H character/symbol?

johnsonorchid

New Member
I'm having a really bad time trying to clean up some XML so I can parse it in Python with etree. Basically before my Python script reads it, I'm trying to escape all the special characters in each string entry that are giving me \[code\]'xml.parsers.expat.ExpatError: not well-formed'\[/code\]So while I'm generating the XML string entries, I'm using \[code\]sed\[/code\] to replace special characters with either their escaped versions or just a \[code\]space\[/code\] when I really don't care. But now in my generated XML I'm seeing a \[code\]^H\[/code\] character, which vim has highlighted as blue. I tried escaping the \[code\]^\[/code\] but that didn't work, the character remains so I'm thinking it must be some kind of composite special character. Sigh why does this suck so much. Anyways thanks for any help.
 
Back
Top