FeedParser

FeedParser — feed parser

Stability Level

, unless otherwise indicated

Synopsis

                    FeedParser;
FeedParser*         feed_parser_new                     ();
GList*              feed_parser_parse                   (FeedParser *parser,
                                                         FeedChannel *feed,
                                                         xmlDocPtr doc,
                                                         GError **error);

Object Hierarchy

  GObject
   +----FeedParser

Description

The FeedParser is a wrapper to the many handlers available: given a FeedChannel provides to identify his type and invoke the correct parser.

Details

FeedParser

typedef struct _FeedParser FeedParser;


feed_parser_new ()

FeedParser*         feed_parser_new                     ();

Allocates a new FeedParser

Returns :

a new FeedParser

feed_parser_parse ()

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

parser :

a FeedParser

feed :

a FeedChannel to be parsed

doc :

XML document extracted from the contents of the feed, which must already been fetched

error :

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