How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Parse XML in Python: ElementTree, lxml, Tested

calendar_today November 20, 2026 domain quanticdata-io

Use xml.etree.ElementTree from the standard library: ET.fromstring(r.content), then findall() with the namespace map when the document declares one. We parsed a 2,618-URL sitemap five ways and timed them; the namespace is where most code silently finds nothing.

open_in_new Read original post