Partager via


IFeed::Merge Method

Combines the specified XML with the feed.

Syntax

HRESULT Merge(
    BSTR feedXml,
    BSTR feedUrl
);

Parameters

  • feedXml
    [in] BSTR that specifies the XML to be merged with the feed.
  • feedUrl
    [in] BSTR that specifies the download URL to be used for security purposes.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The XML document should be a well-formed Really Simple Syndication (RSS) 2.0 feed format. If the document cannot be loaded, IFeed::Merge will return an HRESULT derived from the Microsoft Win32 error ERROR_BAD_FORMAT.

The feedUrl parameter is used to determine the security zone of the feed and it may not be NULL. If the URL begins with anything other than the "http:" or "https:" protocol, or if it cannot be parsed, this method will return E_INVALIDARG.

See Also

IFeed::DownloadUrl, IFeedsManager::Normalize