|  |  |  | libgrss Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct GrssFeedParser; GrssFeedParser * grss_feed_parser_new (); GList * grss_feed_parser_parse (GrssFeedParser *parser,GrssFeedChannel *feed,xmlDocPtr doc,GError **error);
The GrssFeedParser is a wrapper to the many handlers available: given a GrssFeedChannel provides to identify his type and invoke the correct parser.
GrssFeedParser * grss_feed_parser_new ();
Allocates a new GrssFeedParser.
| Returns : | a new GrssFeedParser. | 
GList * grss_feed_parser_parse (GrssFeedParser *parser,GrssFeedChannel *feed,xmlDocPtr doc,GError **error);
Parses the given XML doc, belonging to the given feed, to obtain a list
of GrssFeedItem.
| 
 | a GrssFeedParser. | 
| 
 | a GrssFeedChannel to be parsed. | 
| 
 | XML document extracted from the contents of the feed, which must already been fetched. | 
| 
 | location for eventual errors. | 
| Returns : | a list of GrssFeedItem, to be freed when no longer in use, or
NULL if an error occours and erroris set. |