The Python Papers

The Python Papers

Share this post

The Python Papers
The Python Papers
Parsing XML Comments with Python

Parsing XML Comments with Python

Mike Driscoll's avatar
Mike Driscoll
Jun 05, 2025
∙ Paid
6

Share this post

The Python Papers
The Python Papers
Parsing XML Comments with Python
Share

The Extensible Markup Language (XML) is a markup format originally for XML. Some companies use XML as a data serialization format or for configuration. Recently, I needed to learn how to uncomment some lines in an XML file to enable some settings that were defined in the XML.

Fortunately, Python’s xml module provides a way to do this. Let’s find out how!

…

Keep reading with a 7-day free trial

Subscribe to The Python Papers to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mike Driscoll
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share