Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: easy way of parsing XML

by BrowserUk (Patriarch)
on Jun 29, 2002 at 17:45 UTC ( [id://178249]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!e:/Perl/bin/Perl.exe -w
    use strict;
    ...
    (my $label= shift) =~ s/^(.+)+$/$1->/;
    #print $label . "\n";
    print walk $label, shift||0, $xml;
    
  2. or download this
    xmlrefs.pl C:\test\items.xml "" 1 >itemlist.refs
    
  3. or download this
    xml->{Category1} := General
    xml->{Origin} := Canada
    ...
    xml->{Width} := 3.56
    xml->{Circa} := Early 20th Century
    xml->{Dimensions} := 3.56 x 5.18m
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-06-19 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.