Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Kindly suggest a good starting point for XML Parsing.

by choroba (Bishop)
on Dec 30, 2011 at 00:45 UTC ( #945575=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use XML::LibXML;
    $s = "&ltfoo name=bobby>&ltname&gtrobert</name></foo></p>";
    ...
    print $dom->serialize;
    $s2 = $dom->findnodes("//text()")->[0]->data;
    print "after: $s2.\n";
    
  2. or download this
    before: &ltfoo name=bobby>&ltname&gtrobert</name></foo></p>.
    <?xml version="1.0"?>
    <root>&amp;ltfoo name=bobby&gt;&amp;ltname&amp;gtrobert&lt;/name&gt;&l
    +t;/foo&gt;&lt;/p&gt;</root>
    after: &ltfoo name=bobby>&ltname&gtrobert</name></foo></p>.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://945575]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-11-23 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (333 votes). Check out past polls.

    Notices?