XML::Simple attribute indentation not workingby Popcorn Dave (Abbot)
|on Sep 23, 2007 at 05:37 UTC||Need Help??|
Popcorn Dave has asked for the
wisdom of the Perl Monks concerning the following question:
I'm finally getting my feet wet with XML by trying to combine two XML files in to one. So far so good, but when I write the XML file back, attribute indentation in XML::Simple is being ignored.
As it stands, the code is printing the XML as this:
According to the docs, unless I misread them, the AttrIndent => 1 should indent the tags so it looks like this:
What have I overlooked to get the indentation to work as in the second XML example?
Thanks in advance!
Revolution. Today, 3 O'Clock. Meet behind the monkey bars.
I would love to change the world, but they won't give me the source code