If you’re lucky, all that should be needed to convert a TeX file, mydoc.tex to XML, and then to XHTML+MathML would be:
| latexml --dest=mydoc.xml mydoc |
| latexmlpost -dest=somewhere/mydoc.xhtml mydoc.xml |
This will carry out a default transformation into XHTML+MathML. If you give the destination extension with html, it will generate HTML+images.
If you’re not so lucky, or want to get fancy, well …dig deeper:
describes the latexml command.
describes the latexmlpost command for postprocessing.