Configuration options


Defines

#define AFPOPT_PERMALINK_PSEUDORELTYPE   1000
 Permalink pseudo-reltype.
#define AFPOPT_ENCLOSURE_PSEUDORELTYPE   1001
 Enclosure pseudo-reltype.
#define AFPOPT_TRANSLATE_INVALID_AMPERSANDS   2000
 Translates invalid ampersands in feed content.
#define AFPOPT_TRANSLATE_RELATIVE_LINKS   2001
 Translates relative links in feed content.
#define AFPOPT_REPEAT_SGML_ENTITY_DECODING   2002
 Requests that SGML entities be decoded multiple times.
#define AFPOPT_ENCODING_OVERRIDE   2003
 Forces the feed to be parsed using the specified encoding.
#define AFPOPT_FEED_TYPE_OVERRIDE   2004
 Forces the feed to be parsed as the specified format.

Typedefs

typedef int AFP_CONFIGOPTION
 SDK configuration option.

Define Documentation

#define AFPOPT_PERMALINK_PSEUDORELTYPE   1000
 

Permalink pseudo-reltype.

AFP_GetConfigOption() will return a const wchar_t* that points to the string value used as a reltype to flag permalinks in a feed item's list of links.

See also:
AFPFID_ITEM_LINKURL

#define AFPOPT_ENCLOSURE_PSEUDORELTYPE   1001
 

Enclosure pseudo-reltype.

AFP_GetConfigOption() will return a const wchar_t* that points to the string value used as a reltype to flag enclosures in a feed item's list of links.

See also:
AFPFID_ITEM_LINKURL

#define AFPOPT_TRANSLATE_INVALID_AMPERSANDS   2000
 

Translates invalid ampersands in feed content.

The most common cause of feed parsing errors is unescaped ampersands. These are typically caused by the user copying some text from somewhere that contains ampersands and pasting it into their blogging tool. The ampersand doesn't get escaped properly when it is published in the RSS feed, resulting in invalid XML.

Enabling this switch causes the feed parser to attempt to fix up any invalid ampersands in feed content before parsing it.

AFP_SetFeedParserOption() should be passed in a pointer to an int value that contains 0 to disable this feature or a non-zero value to enable it.

#define AFPOPT_TRANSLATE_RELATIVE_LINKS   2001
 

Translates relative links in feed content.

Enabling this switch causes the feed parser to translate any relative links found in feed content into absolute links (relative to the domain root).

AFP_SetFeedParserOption() should be passed in a pointer to an int value that contains 0 to disable this feature or a non-zero value to enable it.

Note:
This switch only affects RSS and RDF feeds. Atom feeds are required to use xml:base to handle relative links.

#define AFPOPT_REPEAT_SGML_ENTITY_DECODING   2002
 

Requests that SGML entities be decoded multiple times.

Some feeds incorrectly encode SGML entities multiple times. To parse the feed content as the publisher intended, these SGML entities must be decoded the same number of times.

AFP_SetFeedParserOption() should be passed in a pointer to an int value that specifies how many additional times SGML entities should be decoded.

#define AFPOPT_ENCODING_OVERRIDE   2003
 

Forces the feed to be parsed using the specified encoding.

AFP_SetFeedParserOption() should be passed in a const char* value that specifies the encoding to be used when parsing a feed e.g. "utf-16"

#define AFPOPT_FEED_TYPE_OVERRIDE   2004
 

Forces the feed to be parsed as the specified format.

AFP_SetFeedParserOption() should be passed in a const char* value that specifies what format the feed XML should be parsed as. Valid values for this settings are "RSS", "ATOM-0.3" and "REDIRECT".