共用方式為


IFeedsManager::Normalize Method

Transforms the XML of the feed into the standard format.

Syntax

HRESULT Normalize(
    BSTR feedXmlIn,
    BSTR *feedXmlOut
);

Parameters

  • feedXmlIn
    [in] BSTR that specifies the XML to be normalized.
  • feedXmlOut
    [out, retval] BSTR that receives the resulting XML.

Return Value

Returns one of the following values:

S_OK Success.
FEC_E_INVALIDMSXMLPROPERTY Unable to set Microsoft XML (MSXML) second-level property.

Remarks

If this method fails with FEC_E_INVALIDMSXMLPROPERTY, ensure that a current release of the MSXML component is installed.

When a feed is downloaded, it is transformed into the Windows RSS Platform native format before processing. This format includes platform-specific extensions and is essentially a superset of all supported formats.

IFeedsManager::Normalize recognizes the following formats:

  • Atom Syndication Format 0.3, 1.0
  • Rich Site Summary (RSS) 0.91, 0.92
  • RDF Site Summary (RSS) 1.0
  • Really Simple Syndication (RSS) 2.0

See Also

IFeed::Merge