Python/XML Reference Guide
Next:
4.3 DTDHandler methods
Up:
4. xml.sax.saxlib
Previous:
4.1 AttributeList methods
4
.
2
DocumentHandler
methods
characters
(
ch, start, length
)
Handle a character data event.
endDocument
()
Handle an event for the end of a document.
endElement
(
name
)
Handle an event for the end of an element.
ignorableWhitespace
(
ch, start, length
)
Handle an event for ignorable whitespace in element content.
processingInstruction
(
target, data
)
Handle a processing instruction event.
setDocumentLocator
(
locator
)
Receive an object for locating the origin of SAX document events. You'll probably want to store the value of
locator
as an attribute of the handler instance.
startDocument
()
Handle an event for the beginning of a document.
startElement
(
name, attrs
)
Handle an event for the beginning of an element.
Python/XML Reference Guide
Next:
4.3 DTDHandler methods
Up:
4. xml.sax.saxlib
Previous:
4.1 AttributeList methods