Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Perl and XPath.

by DigitalKitty (Parson)
on Jan 06, 2007 at 00:46 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2024-04-25 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found