I am dealing with a feed that all of a sudden has multiple enclosures for some content and the code can't deal with it. Here is the current code. How can I grab just a single enclosure? I actually don't need all of them (they are the same), just one.
else if item.enclosure.Count() > 0
print item.enclosure@url
newStream = {
url: ValidStr(item.enclosure@url)
}
newItem.streams.Push(newStream)
result.Push(newItem)
end if
Thanks!