in reply to Latex to XML

Since TeX is an interpreted macro language and LaTeX a package on top of it I think a really accurate translation can only be done by a modified interpreter.

I don't think it's reasonable to reimplement an interpreter in Perl.

I'd rather try to modify the existing codebase to produce XML instead of DVI or PDF.

But my insights into the detailed mechanisms of TeX and LaTeX are however limited...

Cheers Rolf