in reply to Re: Formatting in XML::Twig->print()
in thread Formatting in XML::Twig->print()
my $parser = new XML::Twig(KeepSpaces => 'true', ErrorContext => 2);
No more mystery: KeepSpaces essentially tells XML::Twig to keep its hands off of whitespace management. So if you want your elements to be indented, you will have to do it yourself, by inserting an element containing the appropriate whitespace between the 2 Server elements. Or you could probably remove the KeepSpaces option alltogether. Is there any reason why it's there?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Formatting in XML::Twig->print()
by Nitrox (Chaplain) on Feb 12, 2005 at 19:28 UTC | |
by mirod (Canon) on Feb 12, 2005 at 19:46 UTC | |
by Nitrox (Chaplain) on Feb 12, 2005 at 19:59 UTC | |
by mirod (Canon) on Feb 12, 2005 at 20:05 UTC |
In Section
Seekers of Perl Wisdom