WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIFeedResult

IID:7a180b78-0f46-4569-8c22-f3d720ea1c57
Inherits From:nsISupports

The nsIFeedResult interface provides access to HTTP and parsing metadata for a feed or entry.

This interface is implemented by the following components:


Properties

PRBool bozo

The Feed parser will set the bozo bit when a feed triggers a fatal error during XML parsing. There may be entries and feed metadata that were parsed before the error. Thanks to Tim Bray for suggesting this terminology.

nsIFeedContainer doc

The parsed feed or entry.

Will be null if a non-feed is processed.

nsIProperties headers

HTTP response headers that accompanied the feed.

nsIURI stylesheet

An XSLT stylesheet available to transform the source of the feed. Some feeds include this information in a processing instruction. It's generally intended for clients with specific feed capabilities.

nsIURI uri

The address from which the feed was fetched.

AString version

Feed Version: atom, rss2, rss09, rss091, rss091userland, rss092, rss1, atom03, atomEntry, rssItem

Will be null if a non-feed is processed.


Methods

void registerExtensionPrefix ( AString namespace , AString prefix )

void registerExtensionPrefix ( AString namespace , AString prefix )

Registers a prefix used to access an extension in the feed/entry

Arguments:
namespace
prefix

References

This interface is passed as an argument to the following methods:

nsIFeedProgressListener.handleEntry, nsIFeedProgressListener.handleFeedAtFirstEntry, nsIFeedProgressListener.handleStartFeed, nsIFeedResultListener.handleResult, nsIFeedResultService.addFeedResult

This interface is returned from the following methods:

nsIFeedResultService.getFeedResult

Reference documentation is generated from Mozilla's source.