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.