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

Re: easy way of parsing XML

by BrowserUk (Pope)
on Jun 29, 2002 at 17:45 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2021-08-03 11:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (37 votes). Check out past polls.

    Notices?