I\'m trying to figure out how to convert a MathML representation of a math equation and convert it to the LaTeX representation of that math equation. So for example...
Try http://www.tilman.de/programme/mathparser/anleitung_en.html - it's written in Java and the source is available.
I had similar problem and mathparser provided in url from question wasn't working for me at all.
I converted MathML to LaTeX by using XSLT MathML Library with Saxon-HE but since XSLT MathML library is pure XSLT any XSLT transformation tool should handle it. Output is not always perfect but it gave me better results than web-xslt mentioned somewhere at stackexchange network.
Command line usage with saxon:
saxon -o output.tex input.mml xsltml_2.1.2/mmltex.xsl
What's wrong with XSLT, SAX parsers, or DOM parsers?
Bindings for SAX and DOM parsers exist for all major languages (and pretty much every other language too). I would recommend DOM parsing using a functional language, but tastes differ.
XSLT is a functional language designed for processing XML.