Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: get text from node - XML::LibXML

by tobyink (Canon)
on Jul 20, 2018 at 12:53 UTC ( #1218899=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
    my $xml = XML::LibXML->load_xml(string => $str);
    
    print $xml->getElementsByTagName("g")->shift->toString, "\n";
    
  2. or download this
    <g id="1">Need to export this text</g>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2021-04-13 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?