I've been using LaTeXML (which is second result from a web search on LaTeX to XML) and it works for my purposes. It takes particular care of handling equations and has hooks for writing your own handlers for unusual style files.
perl -e 'print qq(Just another Perl Hacker\n)' # where's the irony switch?