| |
| BOOL ParseFeed( |
| |
LPCTSTR lpszFeedXml, |
|
| |
DWORD dwOptions, |
|
| |
LPRSSCHANNEL lpChannel |
|
| ); |
| BOOL ParseFeed( |
| |
LPCTSTR lpszFeedXml, |
|
| |
LPRSSCHANNEL lpChannel |
|
| ); |
The ParseFeed method is used to parse the contents of a
news feed, returning a handle which can be used to access the
individual news items in the feed.
Parameters
- lpszFeedXml
- A null-terminated string which contains the
contents of the news feed. The string must contain XML formatted
data that conforms to the RSS standard specification. This
parameter cannot specify an empty string or a NULL pointer.
- dwOptions
- An unsigned integer that specifies one or more options. This
parameter is constructed by using a bitwise operator with any of
the following values:
| Value |
Description |
| RSS_OPTION_NONE |
No additional options are specified. |
| RSS_OPTION_STRICT |
The news feed content should be processed using strict
rules to ensure that the feed meets the appropriate RSS
standard specification and all feed property values are
case-sensitive. By default, relaxed rules are used which allows
the application to open a feed that may not strictly conform to
the standard specification. |
- lpChannel
- A pointer to an RSSCHANNEL structure which contains
information about the news feed channel such as the feed title,
hyperlink and description. If the parameter is not NULL, the
structure is initialized by the method. If the parameter is NULL,
it is ignored and no information is returned.
Return Value
If the method succeeds, the return value is non-zero. If the
function fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
The ParseFeed method is an alternative to the
OpenFeed method, enabling the application to process a news
feed from alternative sources such as a database or compressed file.
It is important to note that the string which contains the news feed
XML must be properly formatted and conform to the RSS standard
specification.
The data referenced in the RSSCHANNEL structure should be
considered read-only and never modified by the application. Not all
members of the structure may contain valid values, in which case
those members will either have a value of zero or will specify NULL
pointers. When the feed is closed, the members of this structure will
no longer be valid, and therefore should never be stored by the
application. If the application needs to store or modify this
information, it should create its own private copy of the data.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csrssv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|
|