GetProperty Method
Gets the value of a specific RSS feed item element or attribute.
Syntax
public String getProperty(String propertyName);
Remarks
This method is intended for extending functionality of the RSS component. It will get the value for a specific item element or attribute of this RSS feed. Property is the XPath of the element or attribute according to the following convention: root/element@attribute. The @attribute part is optional, and the root field can be any of the four following values:
channel | This treats the channel as the root level, and element is any property of the channel. If the empty string ("") is supplied for the root field, the component will assume channel as the root. |
image | This treats the channel's image as the root level, and element is any property of an image. |
textInput | This treats the channel's textInput as the root level, and element is any property of an textInput. |
item[x] | This treats the channel's xth item as the root level where the indexer x starts at 1. The field element is any property of an item. |
The element field can be any property of the root field, and attribute can be any property of that field. If an attribute is not supplied, this method will return the text portion of element. For example:
RSSControl.GetProperty("item[5]/guid@isPermaLink") RSSControl.GetProperty("item[5]/link") RSSControl.GetProperty("/channel/title")
Note: in order to add non-standard fields (i.e. fields that are not defined in the RSS specification), element must be prefixed with a namespace that defines that field. The same applies for the attribute field. Use the Namespaces collection to define and list namespaces.