in reply to How to save a XML File using XPath

my $str = $xp->getNodeAsXML(); print $str;

-derby