An example of a simple TeXML document:
<TeXML>
<TeXML escape="0">
\documentclass[a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
</TeXML>
<env name="document">
I'm not afraid of the symbols
$, ^, > and others.
</env>
</TeXML>
The result of conversion to TeX is the LaTeX document:
\documentclass[a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
I'm not afraid of the symbols
\textdollar{}, \^{}, \textgreater{} and others.
\end{document}
This example demonstrates:
By the way, while preparing the original LaTeX example, I made two errors:
TeXML saves me from such dummy errors.
Disabling escaping is not recommended. In most cases it's a misuse of TeXML. But to make examples simple, I do use it for creating the LaTeX header.
Next step: “More TeXML”