[XML-SIG] PrettyPrint question

Brian Reynolds Brian.Reynolds at risaris.com
Tue Oct 12 16:58:29 CEST 2004

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.

Just to give an example, I've got this bit of code:

from xml.dom.ext.reader import Sax2
from xml.dom.ext import *

myString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><rapdv:hello

reader = Sax2.Reader()
doc = reader.fromString( myString )
PrettyPrint( doc)

and executing this:

<?xml version='1.0' encoding='UTF-8'?>
<rapdv:hello xmlns:rapdv='http://www.risaris.com'>data</rapdv:hello>

Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20041012/dcb61b15/attachment.htm

More information about the XML-SIG mailing list