PrettyPrint not outputing anything !!

Sunit Joshi sjoshi at ingr.com
Wed Aug 14 17:43:39 CEST 2002


Hello All
I'm using pyxml0.8 with Python2.2.1 and I can't get PrettyPrint to
output anything. Here's a sample
sXml="""<?xml version="1.0"?>
<Models>
        <Model>
                <ModelNo>1600pa</ModelNo>
                <RevDate>1956580</RevDate>
        </Model>
</Models>"""

str = StringIO.StringIO()
PrettyPrint(sXml,str)
str.getvalue()
prints ''

Any ideas what might be wrong.

thanks
Sunit
sjoshi at ingr.com



More information about the Python-list mailing list