xml.dom.pulldom — Support for building partial DOM trees — Python 3.14.7 documentation

docs.python.org

Tin mới

xml.dom.minidom — Minimal DOM implementation

xml.sax — Support for SAX2 parsers

Python Module Index

3.14.7 Documentation

The Python Standard Library

Structured Markup Processing Tools

xml.dom: Document Object Model API for Python.

If you need to parse untrusted or unauthenticated data, see XML security.

xml.sax.handler.ContentHandler

Subclass of xml.sax.handler.ContentHandler which turns SAX events into the events of the pull parser. The nodes are created, but they are not added to the tree, unless expandNode() is called. documentFactory, if given, i

xml.sax.xmlreader.XMLReader

Return a DOMEventStream from the given input. stream_or_string may be either a file name, or a file-like object. parser, if given, must be an XMLReader object. This function will change the document handler of the parser

object.__getitem__

Changed in version 3.11: Support for __getitem__() method has been removed.