parsing multiple root element XML into text
Marko Rauhamaa
marko at pacujo.net
Fri May 9 12:15:48 EDT 2014
Alain Ketterlin <alain at dpt-info.u-strasbg.fr>:
> which does an exact traversal of potential the DOM tree... (assuming a
> DOM is even defined on a non well-formed XML document).
>
> Anyway, my point was only to warn the OP that he is not doing XML.
I consider that one of the multitude of flaws in XML.
Compare that with the close analogue: S expressions. Every lisp/scheme
command interface takes in a sequence of unframed S expressions and
interprets them in sequence. I have built similar interfaces using XML:
the command interface accepts a sequence of XML elements and acts on
them upon reaching the end of a complete element.
Marko
More information about the Python-list
mailing list