PyDocs

Nav

Structured Markup Processing Tools

XMLReader

Interface for reading an XML document using callbacks.

XMLReader is the interface that an XML parser's SAX2 driver must
implement. This interface allows an application to set and query
features and properties in the parser, to register event handlers
for document processing, and to initiate a document parse.

All SAX interfaces are assumed to be synchronous: the parse
methods must not return until parsing is complete, and readers
must wait for an event-handler callback to return before reporting
the next event.
Members of XMLReader

g

getContentHandler
Returns the current ContentHandler.
getDTDHandler
Returns the current DTD handler.
getEntityResolver
Returns the current EntityResolver.
getErrorHandler
Returns the current ErrorHandler.
getFeature
Looks up and returns the state of a SAX2 feature.
getProperty
Looks up and returns the value of a SAX2 property.

p

parse
Parse an XML document from a system identifier or an InputSource.

s

setContentHandler
Registers a new object to receive document content events.
setDTDHandler
Register an object to receive basic DTD-related events.
setEntityResolver
Register an object to resolve external entities.
setErrorHandler
Register an object to receive error-message events.
setFeature
Sets the state of a SAX2 feature.
setLocale
Allow an application to set the locale for errors and warnings.
setProperty
Sets the value of a SAX2 property.
0 Examples
No examples for xml.sax.xmlreader/XMLReader.
See Also
No see-alsos for xml.sax.xmlreader/XMLReader
0 Notes
No notes for XMLReader