![]() |
![]() |
![]() |
libgrss Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
FeedParser; FeedParser* feed_parser_new (); GList* feed_parser_parse (FeedParser *parser
,FeedChannel *feed
,xmlDocPtr doc
,GError **error
);
The FeedParser is a wrapper to the many handlers available: given a FeedChannel provides to identify his type and invoke the correct parser.
FeedParser* feed_parser_new ();
Allocates a new FeedParser
Returns : |
a new FeedParser |
GList* feed_parser_parse (FeedParser *parser
,FeedChannel *feed
,xmlDocPtr doc
,GError **error
);
Parses the given XML doc
, belonging to the given feed
, to obtain a list
of FeedItem
|
a FeedParser |
|
a FeedChannel 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 FeedItem, to be freed when no longer in use, or
NULL if an error occours and error is set
|