PyDocs

Nav

Structured Markup Processing Tools

LexicalHandler

Optional SAX2 handler for lexical events.

This handler is used to obtain lexical information about an XML
document, that is, information about how the document was encoded
(as opposed to what it contains, which is reported to the
ContentHandler), such as comments and CDATA marked section
boundaries.

To set the LexicalHandler of an XMLReader, use the setProperty
method with the property identifier
'http://xml.org/sax/properties/lexical-handler'.
Members of LexicalHandler

c

comment
Reports a comment anywhere in the document (including the DTD and outside the document element).

e

endCDATA
Reports the end of a CDATA marked section.
endDTD
Signals the end of DTD declarations.

s

startCDATA
Reports the beginning of a CDATA marked section.
startDTD
Report the start of the DTD declarations, if the document has an associated DTD.
0 Examples
No examples for xml.sax.handler/LexicalHandler.
See Also
No see-alsos for xml.sax.handler/LexicalHandler
0 Notes
No notes for LexicalHandler