in reply to Latex to XML

What kind of XML do you want? And why? Just adding <latex> at the beginnning and </latex> at the end plus escaping all <'s and &'s (and ]]>'s) creates a well-formed XML.