Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Mixed XML content with XML::LibXML

by ForgotPasswordAgain (Deacon)
on Sep 29, 2008 at 13:58 UTC ( #714357=note: print w/ replies, xml ) Need Help??

in reply to Mixed XML content with XML::LibXML

I'd first of all call $node->normalize, to make sure the text nodes aren't weirdly split apart. Then call $node->firstChild (both documented in perldoc XML::LibXML::Node). You might also compare $node->nodeType == XML_TEXT_NODE (see perldoc XML::LibXML "EXPORT TAGS" section for all the node types) to make sure it's a text node. I believe the "node name" of text nodes is '#text', so you could even try that.

Comment on Re: Mixed XML content with XML::LibXML
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2015-11-25 16:31 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (683 votes), past polls