Unix Man page/Perldoc/Info page, English-Chinese Dictionary,
Chinese-English Dictionary
XML::RSS::Parser::LiteUser)Contributed Perl DocumenXML::RSS::Parser::Lite(3pm) NAME XML::RSS::Parser::Lite - A simple pure perl RSS parser. SYNOPSIS use XML::RSS::Parser::Lite; use LWP::Simple; my $xml = get("http://url.to.rss"); my $rp = new XML::RSS::Parser::Lite; $rp->parse($xml); print $rp->get('title') . " " . $rp->get('url') . " " . $rp->get('description') . "\n"; for (my $i = 0; $i < $rp->count(); $i++) { my $it = $rp->get($i); print $it->get('title') . " " . $it->get('url') . " " . $it->get('description') . "\n"; } DESCRIPTION XML::RSS::Parser::Lite is a simple pure perl RSS parser. It uses XML::Parser::Lite for its parsing. METHODS $rp = new XML::RSS::Parser::Lite; Creates a new RSS parser. $rp->parse($xml); Parses the supplied xml. $items = $rp->count(); Returns the number of items in the RSS file. $value = $rp->get($what); Integers sent to get returns and XML::RSS::Parser::Lite::Item while the strings title, url, and description returns these values from the RSS channel information. $value = $item->get($what); On an XML::RSS::Parser::Lite::Item this can return the strings title, url, or description. AUTHOR Copyright (c) 2003 Erik Bosrup. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR Erik Bosrup, erik AT bosrup.com 1; perl v5.8.8 2003-11-02 XML::RSS::Parser::Lite(3pm) |