A source element is an optional subelement of item. The RSS spec states that its value is the name of the RSS channel that the item came from, derived from its <title>. It has one required attribute, url, which links to the XMLization of the source.
<source url="http://static.userland.com/tomalak/links2.xml">
Tomalak's Realm</source>
The purpose of this element is to propagate credit for links, to publicize the sources of news items. It can be used in the Post command of an aggregator. It should be generated automatically when forwarding an item from an aggregator to a weblog authoring tool.
The source element has two DOMIT! RSS methods:
$element->getSource();
$element->getUrl();
|