Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: replaceChild in LibXML

by ramrod (Curate)
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://784007]
help
Chatterbox?
[james28909]: hi, im james, and i am bat shit crazy. xD
[james28909]: crazy or genius....
[Eily]: hi bat shit crazy, I'm eily
[LanX]: hello James
[james28909]: lol
[james28909]: i honestly didnt thin kanyone was going to respond, or was even paying attention :l
[Eily]: well if you say something like that someone has to pay attention by law
[Eily]: Murphy's law to be precise

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-12-13 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (373 votes). Check out past polls.

    Notices?