Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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.


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

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 drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-07-24 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls