QuickStart to ElementTree: Manipulating XML in Python

Paulo Belo
3 min readDec 21, 2022
xml and python logos

Learn by example: a quick step-by-step tutorial on main ElementTree features. Read, find element(s), create, iterate and save to XML.

The xml.etree.ElementTree module implements a simple and efficient API for parsing and creating XML data in Python.

https://docs.python.org/3/library/xml.etree.elementtree.html

--

--

Paulo Belo

Developer. Freelancer. Looking for the right words, mainly in ruby and dart.