{
    "mode": "pydoc",
    "parameter": "xml",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/xml/json",
    "generated": "2026-06-02T14:16:15Z",
    "sections": {
        "NAME": {
            "content": "xml - Core XML support for Python.\n",
            "subsections": []
        },
        "MODULE REFERENCE": {
            "content": "https://docs.python.org/3.10/library/xml.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This package contains four sub-packages:\n\ndom -- The W3C Document Object Model.  This supports DOM Level 1 +\nNamespaces.\n\nparsers -- Python wrappers for XML parsers (currently only supports Expat).\n\nsax -- The Simple API for XML, developed by XML-Dev, led by David\nMegginson and ported to Python by Lars Marius Garshol.  This\nsupports the SAX 2 API.\n\netree -- The ElementTree XML library.  This is a subset of the full\nElementTree XML release.\n",
            "subsections": []
        },
        "PACKAGE CONTENTS": {
            "content": "dom (package)\netree (package)\nparsers (package)\nsax (package)\n",
            "subsections": []
        },
        "DATA": {
            "content": "all = ['dom', 'parsers', 'sax', 'etree']\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3.10/xml/init.py\n\n",
            "subsections": []
        }
    },
    "summary": "xml - Core XML support for Python.",
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "XMLStarlet Toolkit: query, edit, check, convert, and transform XML documents.",
        "examples": [
            {
                "description": "Display general help, including the list of subcommands",
                "command": "xml --help"
            },
            {
                "description": "Execute a subcommand with input from a file or URI, printing to `stdout`",
                "command": "xml {{subcommand}} {{options}} {{path/to/input.xml|URI}}"
            },
            {
                "description": "Execute a subcommand using `stdin` and `stdout`",
                "command": "xml {{subcommand}} {{options}}"
            },
            {
                "description": "Execute a subcommand with input from a file or URI and output to a file",
                "command": "xml {{subcommand}} {{options}} {{path/to/input.xml|URI}} > {{path/to/output}}"
            },
            {
                "description": "Display help for a specific subcommand",
                "command": "xml {{subcommand}} --help"
            },
            {
                "description": "Display version",
                "command": "xml --version"
            }
        ]
    }
}