It just occured to me:
Why don't we use LaTeX for parsing its own format?
We just have to redefine a lot of macros to typeout the
information we need.
For conversion of a section headline
\def\section#1{\typeout{\\section}\typeout{}\typeout{#1}}
is all that is needed. For the XML people it's even shorter:
\def\section#1{\typeout{<section>#1</section>}}
Using this method, user defined macros and even certain styles should
work like a charme. People have LaTeX installed anyway, haven't they?
Do I miss something important?
Andre'
--
It'll take a long time to eat 63.000 peanuts.
André Pönitz ......................... [EMAIL PROTECTED]