Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: replaceChild in LibXML

by ramrod (Chaplain)
on Jul 28, 2009 at 18:25 UTC ( #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.


Comment on Re: replaceChild in LibXML
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (16)
As of 2015-07-28 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls