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

Re: XML::TokeParser, how to use it??

by Tanktalus (Canon)
on Jul 05, 2005 at 02:08 UTC ( [id://472340]=note: print w/replies, xml ) Need Help??


in reply to XML::TokeParser, how to use it??

Personal favourite is XML::Twig...

use XML::Twig; use IO::File; my $twig = XML::Twig->new(); $twig->parsefile('20.xml'); # you can use parseurl if 20.xml really is + remote. my $localtxt = IO::File->new('20.txt', 'w') or die "Can't open 20.txt +for writing: $!"; foreach ($twig->get_xpath('//permalink')) { $localtxt->print($_->text(), "\n"); } $localtxt->close();
Hope that helps.

Replies are listed 'Best First'.
Re^2: XML::TokeParser, how to use it??
by peacekorea (Novice) on Jul 05, 2005 at 05:04 UTC
    Tanktalus, sk and ikegami!
    Thank you very much for your help.
    It might sound funny that I had spent three days to think of my question.
    I sincerely thank you for your help, with all my heart.

    a little monk-to-be,

    Buffalo, NY.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found