Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: replaceChild in LibXML

by ramrod (Curate)
on Jul 28, 2009 at 18:25 UTC ( [id://784007]=note: print w/replies, xml ) Need Help??


in reply to replaceChild in LibXML

getElementsByTagNameNS gets element nodes (as opposed to text nodes). Try using findnodes, for example:
$results->findnodes("//wrap/text()");
This way you will replace a text node with another text node.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://784007]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-28 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found