RssCategory.parse constructor
RssCategory.parse(
- XmlElement element
Factory method to create an RssCategory
object from an XmlElement
.
This method parses the element
and extracts the 'domain' attribute and inner text from it
to create an RssCategory
object and returns it.
The extracted 'domain' attribute value is assigned to the domain property. The inner text is assigned to the value property.
Implementation
factory RssCategory.parse(XmlElement element) {
var domain = element.getAttribute('domain');
var value = element.innerText;
return RssCategory(domain, value);
}