► Module Ft.Xml.Lib.XmlPrettyPrinter
This module supports formatted document serialization in XML syntax.
Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes
- class XmlPrettyPrinter(Ft.Xml.Lib.XmlPrinter.XmlPrinter)
-
An XmlPrettyPrinter instance provides functions for serializing an
XML or XML-like document to a stream, based on SAX-like event calls
initiated by an Ft.Xml.Lib.Print.PrintVisitor instance.
The methods in this subclass of XmlPrinter produce the same output
as the base class, but with extra whitespace added for visual
formatting. The indent attribute is the string used for each level
of indenting. It defaults to 2 spaces.
Methods
- __init__(self, stream, encoding)
- Overrides: __init__ from class XmlPrinter
- cdataSection(self, data)
- Overrides: cdataSection from class XmlPrinter
- comment(self, data)
- Overrides: comment from class XmlPrinter
- endElement(self, namespaceUri, tagName)
- Overrides: endElement from class XmlPrinter
- processingInstruction(self, target, data)
- Overrides: processingInstruction from class XmlPrinter
- startElement(self, namespaceUri, tagName, namespaces, attributes)
- Overrides: startElement from class XmlPrinter
- text(self, data, disableEscaping=0)
- Overrides: text from class XmlPrinter
Members
- indent = ' '