IXFeed::Merge Method

Combines the specified XML with the feed.

Syntax

HRESULT Merge(
    IStream *pStream,
    LPCWSTR pszUrl
);

Parameters

  • pStream
    [in] Pointer to a variable of type IStream that specifies the XML to be merged with the feed.
  • pszUrl
    [in] String 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, IXFeed::Merge will return an HRESULT derived from the Microsoft Win32 error ERROR_BAD_FORMAT.

The pszUrl 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

IXFeed::DownloadUrl, IXFeedsManager::Normalize