Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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

by Anonymous Monk
on Jul 30, 2009 at 15:21 UTC ( #784644=note: print w/replies, xml ) Need Help??

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

I have no idea as to where i need to implement this line, can you just develop or explain a bit more this path, i would try it if at least i knew where to try :) Sorry i am completly lost.

Replies are listed 'Best First'.
Re^3: XML::LibXML- Escape Empty Tags
by ramrod (Curate) on Jul 30, 2009 at 15:58 UTC
    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):
      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://784644]
[choroba]: Good morning, if a bit rainy
[marto]: life is a struggle :P I'm glad the GPW went well.
[Corion]: Hi choroba! Yeah, I brought the rain with me from Hamburg
[Corion]: marto: As am I ;) And we got two interested locations for next year, Munich and Cologne maybe, which is great as well. Not Berlin though ;)
[marto]: damn

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-06-29 08:10 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (655 votes). Check out past polls.