I\'m adding nodes to my XML document as part some in-house processing, but cannot get XML::LibXML to auto-indent the added nodes.
I get output like the following:
If you don't mind using another tool, I recommend XML::Tidy. It does one job, and it does it well.