xml.dom — The Document Object Model API¶ Source code: Lib/xml/dom/__init__.py The Document Object Model, or “DOM,” is a cross-language API from the World Wide Web Consortium (W3C) for accessing and modifying XML documents. A DOM implementation presents an XML document as a tree structure, or allows client code to build such a structure from scratch. It then gives access to the structure through a
![xml.dom — The Document Object Model API](https://cdn-ak-scissors.b.st-hatena.com/image/square/3a53e982d46d56c53fb3e7f0b5e3d2ce30a8f391/height=288;version=1;width=512/https%3A%2F%2Fdocs.python.org%2F3%2F_static%2Fog-image.png)