[XML-SIG] New demo added to CVS

Lars Marius Garshol larsga@garshol.priv.no
14 Oct 1999 19:35:01 +0200


* Fred L. Drake, Jr.
|
| I've added a new directory, demo/genxml/, to the CVS repository.
| The demo shows how to generate XML from a non-XML source using DOM,
| SAX, and <file>.write().

Great! This sounds very useful.

| One issue: when using xml.sax.saxutils.Canonizer, the newlines that
| I pass in through <canonizer>.ignorableWhitespace() are written out as 
| &#10; rather than actual newlines; is that right?

It used to be, but I haven't checked the W3C draft yet.

<URL: http://www.jclark.com/xml/canonxml.html >


In any case, Canonizer might not be the thing to use, since it does
stuff like sorting attributes by name etc, which might not be
desirable. 

I think Geir Ove has some pretty-printing DocumentHandler somewhere in
xmlarch and there may be another one as well. Those are probably much
better choices for this.

--Lars M.