Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: xml parsers: do I need one?

by samtregar (Abbot)
on Aug 29, 2003 at 02:29 UTC ( #287572=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [sam@localhost xml_test]$ time ./parser.pl > parser.out
     
    ...
    
    [sam@localhost xml_test]$ diff parser.out regex.out
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
            return join($sep, map { get_word() } (0 .. ((int(rand($num)))+
    +1)));
        }
    }
    
  3. or download this
    #!/usr/bin/perl -w
    
    ...
    while($xml =~ m!<message>([\w\s]+)</message>!g) {
        print $1, "\n";
    }
    
  4. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
            print "\n";
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2022-08-16 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?