0

I'm parsing an XML file and need to modify only some sections, so I don't need to re-write the entire XML. My problem is the initial XML is pretty and nicely aligned, but the element(s) I'm appending is(are) all in one line and it doesn't look pretty at all.

Is there any way I could prettify the element(s) before appending it(them) using only Python's standard library?

bia.is
  • 86
  • 2
  • 5

0 Answers0