- or download this
use strict;
use XML::Twig;
...
$twig->parsefile('1.xml');
$twig->print;
- or download this
<?xml version="1.0"?>
<titles>
...
This is a test
</test>
</titles>
- or download this
<?xml version="1.0"?>
<titles>
...
second sub level
</title></title></name></title>
</titles>
- or download this
<?xml version="1.0"?>
<titles>
...
second sub level
</title></title></name></title>
</titles>