Task: Pretty Print XML Generated with xml.etree.ElementTree in Python
Task: Pretty Print XML Generated with xml.etree.ElementTree in Python: a task in Terminal-Lego-15k (Harbor dataset). When using Python's xml.etree.ElementTree module to create and write XML files, the default tree.write() method outputs everything on a single line without any newlines or…
The task
When using Python's `xml.etree.ElementTree` module to create and write XML files, the default `tree.write()` method outputs everything on a single line without any newlines or indentation. This makes the XML file difficult to read for humans.
Part of PrimeIntellect/Terminal-Lego-15k.