Markdown Format | JSON API | MCP Server Tool
Help on class XMLReader in xml.sax.xmlreader: xml.sax.xmlreader.XMLReader = class XMLReader(builtins.object) | 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. | | Methods defined here: | | __init__(self) | Initialize self. See help(type(self)) for accurate signature. | | getContentHandler(self) | Returns the current ContentHandler. | | getDTDHandler(self) | Returns the current DTD handler. | | getEntityResolver(self) | Returns the current EntityResolver. | | getErrorHandler(self) | Returns the current ErrorHandler. | | getFeature(self, name) | Looks up and returns the state of a SAX2 feature. | | getProperty(self, name) | Looks up and returns the value of a SAX2 property. | | parse(self, source) | Parse an XML document from a system identifier or an InputSource. | | setContentHandler(self, handler) | Registers a new object to receive document content events. | | setDTDHandler(self, handler) | Register an object to receive basic DTD-related events. | | setEntityResolver(self, resolver) | Register an object to resolve external entities. | | setErrorHandler(self, handler) | Register an object to receive error-message events. | | setFeature(self, name, state) | Sets the state of a SAX2 feature. | | setLocale(self, locale) | Allow an application to set the locale for errors and warnings. | | SAX parsers are not required to provide localization for errors | and warnings; if they cannot support the requested locale, | however, they must raise a SAX exception. Applications may | request a locale change in the middle of a parse. | | setProperty(self, name, value) | Sets the value of a SAX2 property. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables (if defined) | | __weakref__ | list of weak references to the object (if defined)
Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 08:03 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)