PrettyPrint is a function in the xml.dom.ext module. see below. Python 2.2 (#1, 11/12/02, 23:31:59) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import xml.dom.ext.prettyprint Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named prettyprint >>> from xml.dom.ext import PrettyPrint >>> dir(xml.dom.ext) Traceback (most recent call last): File "<stdin>", line 1, in ? NameError: name 'xml' is not defined >>> import xml.dom.ext >>> dir(xml.dom.ext) ['Canonicalize', 'DOMException', 'FtDomException', 'GetAllNs', 'GetElementById', 'HTML_4_TRANSITIONAL_INLINE', 'IsDOMString', 'Node', 'NodeFilter', 'NodeTypeDict', 'NodeTypeToClassName', 'PrettyPrint', 'Print', 'ReleaseNode', 'SeekNss', 'SplitQName', 'StripHtml', 'StripXml', 'XHtmlPrettyPrint', 'XHtmlPrint', 'XMLNS_NAMESPACE', 'XML_NAMESPACE', 'XmlSpaceState', '__builtins__', '__doc__', '__file__', '__name__', '__path__', '_id_key', 'c14n', 're', 'string', 'sys', 'types'] >>>
On Fri, 8 Jul 2005, Jeff Zhang wrote: > Hi, > I'm looking for xml.dom.ext.prettyprint module, I downloaded latest PyXml > pkg, but didn't see the module in it. I read a document on the web, saying > you can use prettyprint with PyXml pkg 0.6.6, is it not available after 0.6.6 > or I didn't look in the right place? > > Thanks in advance, > > -Jeff > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com _______________________________________________ XML-SIG maillist - XML-SIG@python.org http://mail.python.org/mailman/listinfo/xml-sig