<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Hi Dave, Uche,<BR>
<BR>
Thanks - that did the trick.<BR>
<BR>
Brian<BR>
<BR>
<BR>
On Thu, 2004-10-14 at 04:25, Uche Ogbuji wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>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.</I></FONT></PRE>
</BLOCKQUOTE>
</BODY>
</HTML>