Declared in module xml.arch.xmlarch
xml.arch.xmlarch.Prettifier
xml.sax.saxlib.HandlerBase
class Prettifier(HandlerBase): def __init__(self, writer=<open file '<stdout>', mode 'w' at 80b09a0>) # Initialize a new instance. def characters(self, data, start_ix, length) # Handle a character data event. def endDocument(self) # Handle an event for the end of a document. def endElement(self, name) # Handle an event for the end of an element. def ignorableWhitespace(self, data, start_ix, length) # Handle an event for ignorable whitespace in element content. def indent(self, mode) # Method for doing indenting. def processingInstruction(self, target, remainder) # Handle a processing instruction event. def set_writer(self, writer) # Set the output stream to use. def set_xml_decl(self, xmldecl) # Set the xml declaration that should be output. def startDocument(self) # Handle an event for the beginning of a document. def startElement(self, name, amap) # Handle an event for the beginning of an element. # Inherited from xml.sax.saxlib.DocumentHandler def characters(self, ch, start, length) # Handle a character data event. def endDocument(self) # Handle an event for the end of a document. def endElement(self, name) # Handle an event for the end of an element. def ignorableWhitespace(self, ch, start, length) # Handle an event for ignorable whitespace in element content. def processingInstruction(self, target, data) # Handle a processing instruction event. def setDocumentLocator(self, locator) # Receive an object for locating the origin of SAX document events. def startDocument(self) # Handle an event for the beginning of a document. def startElement(self, name, atts) # Handle an event for the beginning of an element. # Inherited from xml.sax.saxlib.DTDHandler def notationDecl(self, name, publicId, systemId) # Handle a notation declaration event. def unparsedEntityDecl(self, name, publicId, systemId, ndata) # Handle an unparsed entity declaration event. # Inherited from xml.sax.saxlib.EntityResolver def resolveEntity(self, publicId, systemId) # Resolve the system identifier of an entity. # Inherited from xml.sax.saxlib.HandlerBase def __init__(self) # Inherited from xml.sax.saxlib.ErrorHandler def error(self, exception) # Handle a recoverable error. def fatalError(self, exception) # Handle a non-recoverable error. def warning(self, exception) # Handle a warning.
This class produces a prettified XML document instance.