Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Perl and XPath.

by DigitalKitty (Parson)
on Jan 06, 2007 at 00:46 UTC ( #593243=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <CHATTER>
    ...
    <message user_id="170442" author="jdporter" time="20070105182217">
    oh, sorry. yes, looks like [merlyn|he] is having a problem.</message>
    </CHATTER>
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
        
        foreach my $node ($nodeset->get_nodelist) {
            print XML::XPath::XMLParser::as_string($node), "\n\n"; }
    
  3. or download this
    C:\Perl\bin>perl test.pl
     author="tye"
    ...
    
    
    C:\Perl\bin>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://593243]
Approved by shenme
Front-paged by tye
help
Chatterbox?
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: (4)
As of 2021-04-11 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?