getFeedDoc method: Utility class
Syntax
getFeedDoc(feed_ID, Format, &Attributes)
Description
Use this method to create a FeedDoc object of the given feed format.
Parameters
| Parameter | Description |
|---|---|
|
feed_ID |
Specifies the ID of the feed definition as a string. |
|
Format |
Specifies the feed format as a string. The values are: |
| Value | Description |
|---|---|
|
&utility.FEEDFORMAT_ATOM10 |
An Atom 1.0 format feed. |
| Parameter | Description |
|---|---|
|
&Attributes |
Specifies the feed-level properties as an Attribute collection. |
Returns
A FeedDoc object of the given feed format with properties filled in from the Attribute collection.
Example
import PTFP_FEED:FeedFactory;
import PTFP_FEED:XML_FEED:FeedDoc;
import PTFP_FEED:XML_FEED:FeedEntry;
Local PTFP_FEED:FeedFactory &thisFeedFactory = create PTFP_FEED:FeedFactory();
Local PTFP_FEED:XML_FEED:FeedDoc &this_FeedDoc = &thisFeedFactory.Utility.⇒
getFeedDoc("feed_ID", &thisFeedFactory.Utility.FEEDFORMAT_ATOM10, Null);
Local PTFP_FEED:XML_FEED:FeedEntry &this_Entry = &this_FeedDoc.⇒
addEntry("entry_ID");
Related Topics