Define XML Macrosprev up next64
The approach
\documentclass{article} 
\begin{document} 
\def\XMLdef<#1>#2{\expandafter\def 
    \csname #1\endcsname{#2}} 
\XMLdef<ol>{\begin{enumerate}} 
\XMLdef</ol>{\end{enumerate}} 
\XMLdef<li>{\item} 
\catcode`\<=13 
\def<#1>{\csname #1\endcsname} 
<ol>  <li>...</li> 
      <li>...</li> </ol> 
\end{document}

Also needed: attributes

Resources: TypeXML, TypeHTML