This TeXML document uses more TeXML elements:
<TeXML>
<cmd name="documentclass">
<opt>a4paper</opt>
<parm>article</parm>
</cmd>
....
<env name="document">
Hello, <group><cmd name="it"/>World</group>!
</env>
</TeXML>
After converting to TeX, the result is:
\documentclass[a4paper]{article} ....
\begin{document}
Hello, {\it{}World}!
\end{document}
This example demonstrates the three most often used TeXML elements:
The example also demonstrates how to create the LaTeX header using regular TeXML instead of disabling escaping.
Next step: “Better layout”