[XML-SIG] Big Bug? (was:Pretty-printing DOM trees)
Fri, 22 Jan 1999 16:00:07 +0100
Lars Marius Garshol wrote:
> * Christian Tismer
> | The XML file is well-formed, so there must be a bug in the dom
> | builder. When I let builder.py ignore the assertion error and avoid
> | popping the tree, it works!
> The assertion in question is one that compares the element type name
> of an end tag to the name of the current element. Looks rather
> strange, since xmlproc (which you apparently use) maintains its own
> element stack and checks this internally.
> Unless xmlproc swallows an event somewhere somehow, the error is
> probably in the DOM. Running saxdemo.py and XMLTest.java to get two
> canonized versions of the document should show conclusively whether
> the problem is xmlproc or the DOM.
I ran the file through saxdemo.py and it works.
Further I tried readXml with the sgmlop and sgmllib, giving
the same result.
Lets me say: it must be DOM.
ciao - chris
Christian Tismer :^) <mailto:firstname.lastname@example.org>
Applied Biometrics GmbH : Have a break! Take a ride on Python's
Kaiserin-Augusta-Allee 101 : *Starship* http://starship.skyport.net
10553 Berlin : PGP key -> http://pgp.ai.mit.edu/
we're tired of banana software - shipped green, ripens at home