Does the RSS Data Source asset read the enclosure element?
<enclosure url=http://www.mydomain.com/image.jpg type="image/jpeg" length="10000"/>
I am importing a valid RSS feed, but no enclosure listed via 'available keywords'.
Does the RSS Data Source asset read the enclosure element?
<enclosure url=http://www.mydomain.com/image.jpg type="image/jpeg" length="10000"/>
I am importing a valid RSS feed, but no enclosure listed via 'available keywords'.
Can you use the XML Datasource instead? That has a lot more options such as Root Tag, Tag Names, etc.
Thanks Nick, done that.
How would I extract the value of the 'url' attribute in the element below - ?
<enclosure url=http://www.mydomain.com/image.jpg type="image/jpeg" length="10000"/>
Thanks Nick, done that.
How would I extract the value of the 'url' attribute in the element below - ?
<enclosure url=http://www.mydomain.com/image.jpg type="image/jpeg" length="10000"/>
Did you try adding url as a tag name?
Is this a public feed that I can test?
I did add 'enclosure' and 'url' as tag names, but no output visible for 'enclosure' when viewing 'details' for an item. And of course 'url' is not a tag, but an attribute of a tag.
I couldn't find an example feed for you, although 'enclosure' is part of the RSS 2.0 spec.
Asking the question another way - is it possible to grab an attribute and value from an XML element? I've not found any way to do this in Squiz. Using XPath for instance, it's trivial.
To be clear on terms, in the example below, 'person' would be the element, 'gender' the attribute, and 'female' the attribute value. It's the attribute value I want to extract.
<person gender="female"> <firstname>Anna</firstname>
<lastname>Smith</lastname>
</person>
Asking the question another way - is it possible to grab an attribute and value from an XML element? I've not found any way to do this in Squiz. Using XPath for instance, it's trivial.
Yes, once you add a tag to the "Tag Names" field and submit that page, you will have new options for each of those tags where you can add a comma separated list of attributes for that tag.