[XML-SIG] PyXML documentation (was [mgushee@havenrock.com: Re: [FRPythoneers] xml woes])
Matt Gushee
Matt Gushee <mgushee@havenrock.com>
Fri, 6 Sep 2002 12:59:54 -0600
> ----- Forwarded message from Matt Gushee <mgushee@havenrock.com> -----
>
> On Fri, Sep 06, 2002 at 10:23:51AM -0600, Karl Putland wrote:
>
> > Problem is, that I can't get the <!DOCTYPE ...> tag to print out.
>
> Karl, instead of toprettyxml(), try this (you'll need PyXML installed):
>
> from xml.dom.ext.Printer import PrintWalker, PrintVisitor
>
> f = open('foo.xml','w')
> v = PrintVisitor(f, 'iso8859-1', indent=' ')
> w = PrintWalker(v, document)
> w.run()
> f.close()
>
> Works for me.
You know, it occurs to me that this isn't documented *anywhere* (at
least I couldn't find any docs last time I forgot how to do it).
Shouldn't it be? What's the proper way to submit an addition to the
PyXML documentation?
--
Matt Gushee
Englewood, Colorado, USA
mgushee@havenrock.com
http://www.havenrock.com/