UniversalFeed class

Feed is the root element of the UniversalFeed.

RSS v2.0 spec - https://cyber.harvard.edu/rss/rss.html Atom v0.3 spec - https://validator.w3.org/feed/docs/atom.html Atom v1.0 spec - https://www.rfc-editor.org/rfc/rfc4287.html

Constructors

UniversalFeed.parseFromString(String content)
Generate a new UniversalFeed object from an feed string. The string must be an XML string with RSS or Atom encoding.
factory
UniversalFeed.parseFromXml(XmlElement content)
Generate a new UniversalFeed object from an XML element.
factory

Properties

authors List<Author>
Collect all email address from all authors. (managingEditor, webMaster, etc)
final
categories List<Category>
Specify one or more categories that the channel belongs to.
final
Copyright notice for content in the channel.
getter/setter pair
description String?
Phrase or sentence describing the channel.
getter/setter pair
docs String?
A URL that points to the documentation for the format used in the RSS file.
getter/setter pair
generator Generator?
A string indicating the program used to generate the channel.
getter/setter pair
guid String?
Unique identifier for the feed.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
The URL to the HTML website corresponding to the feed.
getter/setter pair
image Image?
Specifies a GIF, JPEG or PNG image that can be displayed with the channel.
getter/setter pair
items List<Item>
Feed entries
final
language String?
The language of the feed.
getter/setter pair
Collection of links related to the feed.
final
meta MetaData
Contains metadata information for the Feed.
latefinal
podcast ItunesChannel?
If the feed defines an Itunes namespace, this object will be populated.
getter/setter pair
published Timestamp?
The publication date for the content in the channel.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
syndication Syndication?
If the feed defines a Syndication namespace, this object will be populated.
getter/setter pair
title String?
The name of the channel.
getter/setter pair
updated Timestamp?
The last time the content of the channel changed.
getter/setter pair
The URL to the XML feed corresponding to the feed.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

tryParse(String content) UniversalFeed?
Try to parse a string into a UniversalFeed object if fail will return null.