Skip to main content

Parsing XML Documents with Python

Hands-On Lab


Photo of

Training Architect





XML is the return format for many APIs. It is likely you will work with it in your career. Python is an excellent language for parsing and writing XML to interact with these APIs and other circumstances you may encounter.

In this lab we will use Python's defusedxml package to write an XML file, allow the intended user to make use of the XML and make changes, and then parse the XML for the changes.

You will need basic Python programming and SQL skills for this lab:

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.