PrettyPrint not outputing anything !!
Fredrik Lundh
fredrik at pythonware.com
Thu Aug 15 11:55:50 EDT 2002
James J. Besemer wrote:
> > I'm pretty sure PrettyPrint wants a parsed document, not a string.
>
> No. The capability when properly accepts arbitrary Python data.
>
> Usage is a little non-intuitive. I bet Sunit's error is in calling the
> function factory rather than the generated pretty printer.
calling pprint.PrettyPrinter(sXml, str) with a string con-
taining XML data and a stream object gives a ValueError
exception.
calling xml.dom.ext.PrettyPrint(sXml, str) with the same
arguments doesn't do anything.
</F>
More information about the Python-list
mailing list