[XML-SIG] PrettyPrint question
Brian.Reynolds at risaris.com
Thu Oct 14 10:14:34 CEST 2004
Hi Dave, Uche,
Thanks - that did the trick.
On Thu, 2004-10-14 at 04:25, Uche Ogbuji wrote:
> On Tue, 2004-10-12 at 10:39, Dave Kuhlman wrote:
> > On Tue, Oct 12, 2004 at 03:58:29PM +0100, Brian Reynolds wrote:
> > > Hi All,
> > >
> > > I'm using the PrettyPrint function to print a XSD contained in a DOM
> > > tree. What I would like to do is ensure that the attributes are printed
> > > with the double-quotes instead of single quotes.
> > > Is there any way of doing this? I'm using pyxml v0.8.3.
> > >
> > What about trying the following:
> > from xml.dom import minidom
> > doc = minidom.parse('mydoc.xml')
> > root = doc.documentElement
> > print root.toprettyxml()
> Yes. That's a better alternative for a variety of reasons.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the XML-SIG