in reply to
replaceChild in LibXML
getElementsByTagNameNS gets element nodes (as opposed to text nodes). Try using findnodes, for example:
$results->findnodes("//wrap/text()");
[download]
This way you will replace a text node with another text node.
Comment on
Re: replaceChild in LibXML
Download
Code
In Section
Seekers of Perl Wisdom