NobleBlocks

Research indexBook chapter

XML with XPath, XMLStarlet, and Python

Carcano

Apress eBooks1 Jan 2026

NobleIDark:/48914/w1/20261105/B1926629DOI10.1007/979-8-8688-2077-9_11

Paywalled

The full text is at the publisher

You can read the abstract here, or open it at the publisher.

Read at the publisher

Abstract

You might think of XML as a verbose relic of the past, but it remains a critical component of enterprise architectures, legacy environments, and critical security compliance and identity standards like SCAP and SAML. Forgoing XML in favor of modern YAML or JSON is a luxury a DevSecOps professional cannot afford. This chapter will systematically guide you through the necessary skills, introducing the fundamentals of structure using DTDs and XSDs before exploring more precise automation tools. You’ll discover how to accurately query data using XPath, dynamically manipulate configuration trees with xmlstarlet, and programmatically parse documents with Python’s lxml library. Whether you’re new to deciphering enterprise configuration files or an administrator experienced in automating compliance audits, this section provides the architectural framework you need to manage the data format that supports critical business operations.

Discussion

More

Suggest a correction or report