Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: XML::LibXML- Escape Empty Tags

by ramrod (Deacon)
on Jul 30, 2009 at 15:58 UTC ( #784655=note: print w/ replies, xml ) Need Help??

in reply to Re^2: XML::LibXML- Escape Empty Tags
in thread XML::LibXML- Escape Empty Tags

So I guess you didn't try anything?
It seemed from the code you posted that you were somewhat familiar with XML::LibXML.
Anyway, if you want to access text try (in your loop):

Or if you want to get the text node try (anywhere after you parse the file):

Comment on Re^3: XML::LibXML- Escape Empty Tags
Select or Download Code
Replies are listed 'Best First'.
Re^4: XML::LibXML- Escape Empty Tags
by khalistoo (Initiate) on Jul 31, 2009 at 08:36 UTC
    I ve just discovered the module yesterday and tried to actually output something :D, after reading quite few things i tried the hasChild function to check if there is data in those tag but couldn't make it work,. So i ve tried but my knowledge and skills are very limited. Thanks for the tip though

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-12-02 06:57 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (35 votes), past polls