PrettyPrint not outputing anything !!

Fredrik Lundh fredrik at
Thu Aug 15 17:55:50 CEST 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

calling xml.dom.ext.PrettyPrint(sXml, str) with the same
arguments doesn't do anything.


More information about the Python-list mailing list