Skip to main content

21. Structured Markup Processing Tools

xml.etree.ElementTree

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

image

image

Main Classes

Element

ElementTree

Main Functions

ET.fromstring(String) --> Element

ET.tostring(Element) --> String

ET.parse(File) --> ElementTree

https://www.youtube.com/watch?v=j0xr0-IAqyk