The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
12345678910 use XML::Tidy;# create new XML::Tidy object from MainFile.xmlmy $tidy_obj = XML::Tidy->new('filename' => 'MainFile.xml');# Tidy up the indenting $tidy_obj->tidy();# Write out changes back to MainFile.xml $tidy_obj->write();
use
XML::Tidy;
# create new XML::Tidy object from MainFile.xml
my
$tidy_obj
= XML::Tidy->new(
'filename'
=>
'MainFile.xml'
);
# Tidy up the indenting
->tidy();
# Write out changes back to MainFile.xml
->
write
();