Feed parsing functions


Functions

AFP_RETCODE AFP_ParseFeed (AFP_HFEEDPARSER hFeedParser, const char *pFeedDoc, size_t feedDocSize, const char *pBaseUrl, AFP_HFEEDDOC *phFeedDoc, AFP_ErrorInfo *pErrorInfo)
 Parses a feed and returns a handle for an AFP document object that represents the parsed feed. This document object can then be queried about the various elements that were found in the feed.
AFP_RETCODE AFP_FreeFeedDoc (AFP_HFEEDDOC hFeedDoc, AFP_ErrorInfo *pErrorInfo)
 Frees an AFP document object.

Function Documentation

AFP_RETCODE AFP_ParseFeed AFP_HFEEDPARSER  hFeedParser,
const char *  pFeedDoc,
size_t  feedDocSize,
const char *  pBaseUrl,
AFP_HFEEDDOC phFeedDoc,
AFP_ErrorInfo pErrorInfo
 

Parses a feed and returns a handle for an AFP document object that represents the parsed feed. This document object can then be queried about the various elements that were found in the feed.

Parameters:
hFeedParser Handle to an AFP feed parser object.
pFeedDoc Pointer to the XML feed.
feedDocSize Size of the XML feed (in characters).
pBaseUrl Base URL that will be used for translation of relative links.
phFeedDoc Will be filled in with a handle for the new document object.
pErrorInfo Returns error information (optional).
Return values:
AFPRC_OK The feed was parsed successfully and a new document object allocated.
See also:
AFP_FreeFeedDoc()

AFP_GetFeedDocField(), AFP_GetIndexedFeedDocField()

AFP_GetFeedItemField(), AFP_GetIndexedFeedItemField()

AFP_RETCODE AFP_FreeFeedDoc AFP_HFEEDDOC  hFeedDoc,
AFP_ErrorInfo pErrorInfo
 

Frees an AFP document object.

Parameters:
hFeedDoc Handle to an AFP document object.
pErrorInfo Returns error information (optional).
Return values:
AFPRC_OK The document object was freed successfully.
See also:
AFP_ParseFeed()