Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2016-09-27 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (510 votes). Check out past polls.