use XML::LibXML;
my $parser = XML::LibXML->new();
my $doc = eval { $parser->parse_file($file) };
if ($@) {
print STDERR "Couldn't parse '$file', skipping\n";
} else {
my $dom = $doc->documentElement;
# use DOM methods here
$doc->toFile($file);
}
In reply to XML::LibXML
by ForgotPasswordAgain
in thread Seralize a XML tree from XML::Parser
by psini
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |