Reputation: 2399
I want to get attributes from an xml feed. If i f:debug the Array in fluid, i can see the attributes as an array with the name @attributes:
array(6 items)
title => 'Test Title'
enclosure => array(1 item)
@attributes => array(3 items)
url => 'http://www.example.com/test.jpg' (55 chars)
length => '83423' (5 chars)
type => 'image/jpeg' (10 chars)
But it is not possible to read the url with this syntax:
[email protected]
Maybe it is the @ sign. Is there a Viewhelper (maybe VHS) or something i can use to read the data?
Upvotes: 0
Views: 481
Reputation: 2399
Thanks Christoph. This solution works:
<f:for each="{rss_news.enclosure}" as="item">
<img src="{item.url}" alt="">
</f:for>
Upvotes: 2