🌐
GitHub
github.com › wdk-docs › python-documentation › blob › master › docs › library › xml.etree.elementtree.rst
python-documentation/docs/library/xml.etree.elementtree.rst at master · wdk-docs/python-documentation
This is a short tutorial for using :mod:`xml.etree.ElementTree` (ET in short). The goal is to demonstrate some of the building blocks and basic concepts of the module. XML is an inherently hierarchical data format, and the most natural way to represent it is with a tree. ET has two classes for this purpose - :class:`ElementTree` represents the whole XML document as a tree, and :class:`Element` represents a single node in this tree.
Author   wdk-docs
🌐
GitHub
github.com › lxml › lxml
GitHub - lxml/lxml: The lxml XML toolkit for Python · GitHub
lxml is the most feature-rich and easy-to-use library for processing XML and HTML in the Python language. It's also very fast and memory friendly, just so you know. For an introduction and further documentation, see doc/main.txt. For installation information, see INSTALL.txt.
Starred by 3K users
Forked by 612 users
Languages   Python 55.3% | Cython 37.0% | XSLT 6.1% | C 0.6% | HTML 0.6% | Makefile 0.2% | Shell 0.2%
🌐
GitHub
github.com › python › cpython › blob › main › Lib › xml › etree › ElementTree.py
cpython/Lib/xml/etree/ElementTree.py at main · python/cpython
This function can be used to embed "XML Literals" in Python code. · *text* is a string containing XML data, *parser* is an · optional parser instance, defaulting to the standard XMLParser. · Returns an Element instance. · """ if not parser: parser = XMLParser(target=TreeBuilder()) parser.feed(text) return parser.close() ·
Author   python
🌐
lxml
lxml.de › installation.html
Installing lxml
On MacOS-X, we provide binary wheels ("universal2" for Python 3.9+), so just use: ... To build the source distribution, use the following and make sure you have a working Internet connection, as this will download libxml2 and libxslt in order to build them: ... If you want to build lxml from the GitHub repository, you should read how to build lxml from source (or the file doc/build.txt in the source tree).
🌐
GitHub
github.com › luminati-io › parsing-xml-with-python
GitHub - luminati-io/parsing-xml-with-python: Parse XML in Python using ElementTree, lxml, SAX, and more for efficient data processing and structured data integration. · GitHub
Since it’s part of Python’s standard library, there’s no need for any additional installation. For instance, you can use the findall() method to retrieve all url elements from the root and print the text content of each loc element, like so: import xml.etree.ElementTree as ET import requests ...
Author   luminati-io
🌐
Beautiful Soup
tedboy.github.io › python_stdlib › generated › xml.etree.ElementTree.html
xml.etree.ElementTree — Python Standard Library
Docs » · api » · xml.etree.ElementTree · View page source · Functions¶ · Classes¶ · Exceptions¶ · Next Previous · Built with Sphinx using a theme provided by Read the Docs
🌐
GitHub
gist.github.com › 1188501
Parsing a xml string (or file) with Python's xml.etree module · GitHub
Parsing a xml string (or file) with Python's xml.etree module - xml_parsing.py
🌐
lxml
lxml.de
lxml - Processing XML and HTML with Python
Please contact Stefan Behnel for ... and fast Python XML processing. Note that we are not accepting donations in crypto currencies. Much of the development and hosting for lxml is done in a carbon-neutral way or with compensated and very low emissions. Crypto currencies do not fit into that ambition. GitHub Actions supports the lxml project with their build and CI servers. The HTML documentation from this web site is part of the normal source download. ... lxml.etree follows the ...
Find elsewhere
🌐
PyPI
pypi.org › project › elementpath
elementpath · PyPI
The proposal of this package is to provide XPath 1.0, 2.0, 3.0 and 3.1 selectors for ElementTree XML data structures, both for the standard ElementTree library and for the lxml.etree library. For lxml.etree this package can be useful for providing XPath 2.0/3.0/3.1 selectors, because lxml.etree already has it’s own implementation of XPath 1.0. You can install the package with pip in a Python 3.10+ environment:
      » pip install elementpath
    
Published   Jan 20, 2026
Version   5.1.1
🌐
PyPI
pypi.org › project › lxml
lxml · PyPI
To contact the project, go to the project home page or see our bug tracker at https://launchpad.net/lxml · In case you want to use the current in-development version of lxml, you can get it from the github repository at https://github.com/lxml/lxml ...
      » pip install lxml
    
Published   Sep 22, 2025
Version   6.0.2
Homepage   https://lxml.de/
🌐
GitHub
gist.github.com › josephcoombe › 307125443cacf3a6728d576a6367bff5
Python xml.etree with XPath · GitHub
Python xml.etree with XPath. GitHub Gist: instantly share code, notes, and snippets.
🌐
Python
docs.python.org › 3 › library › xml.etree.elementtree.html
xml.etree.ElementTree — The ElementTree XML API
January 29, 2026 - Source code: Lib/xml/etree/ElementTree.py The xml.etree.ElementTree module implements a simple and efficient API for parsing and creating XML data. Tutorial: This is a short tutorial for using xml....
🌐
GitHub
github.com › oxylabs › lxml-tutorial
GitHub - oxylabs/lxml-tutorial: A tutorial on parsing webpages with lxml · GitHub
Finally, we will put together all the pieces and see how to extract data using lxml. For a detailed explanation, see our blog post. The best way to download and install the lxml library is to use the pip package manager.
Starred by 5 users
Forked by 5 users
Languages   Python 89.4% | HTML 10.6%
🌐
GitHub
github.com › python › typeshed › blob › main › stdlib › xml › etree › ElementTree.pyi
typeshed/stdlib/xml/etree/ElementTree.pyi at main · python/typeshed
Collection of library stubs for Python, with static types - typeshed/stdlib/xml/etree/ElementTree.pyi at main · python/typeshed
Author   python
🌐
GitHub
github.com › python › cpython › tree › main › Lib › xml › etree
cpython/Lib/xml/etree at main · python/cpython
The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Author   python
🌐
GitHub
github.com › SeanOC › sharpy › issues › 21
Installation with PIP failing due to elementtree requirement · Issue #21 · SeanOC/sharpy
April 1, 2016 - $ sudo pip install lxml Requirement already satisfied (use --upgrade to upgrade): lxml in /usr/lib/python2.7/dist-packages Cleaning up...
Author   maxmumford