xml.sax.xmlreader — Interface for XML parsers — Python 3.14.7 documentation

docs.python.org

Tin mới

xml.sax.saxutils — SAX Utilities

xml.parsers.expat — Fast XML parsing using Expat

Python Module Index

3.14.7 Documentation

The Python Standard Library

Structured Markup Processing Tools

xml.sax.make_parser()

SAX parsers implement the XMLReader interface. They are implemented in a Python module, which must provide a function create_parser(). This function is invoked by xml.sax.make_parser() with no arguments to create a new p

xml.sax.handler.ContentHandler

NotImplementedError

Prepare the parser for parsing source, an InputSource instance. It is called by parse() before feeding the data. The parser implementation must override this method; the default implementation raises NotImplementedError.

The Attributes Interface¶

Attributes objects implement a portion of the mapping protocol, including the methods copy(), get(), __contains__(), items(), keys(), and values(). The following methods are also provided:

object.__contains__

Attributes objects implement a portion of the mapping protocol, including the methods copy(), get(), __contains__(), items(), keys(), and values(). The following methods are also provided: