more useful options | |
PerlMonks |
Re: Formatting XMLby mirod (Canon) |
on Apr 01, 2007 at 03:39 UTC ( [id://607670]=note: print w/replies, xml ) | Need Help?? |
XML::Twig has options to pretty_print the output, so my $formatted_xml= XML::Twig->parse( pretty_print => 'indented', $xml)->sprint should give yoou what you want.
In Section
Seekers of Perl Wisdom
|
|