Help for this page
use strict; use warnings; ... $node1->replaceNode($node2); print $doc1->toString(0);