Hello all,
Trying to make an action stream plugin and almost all of the way there, just need to extract one extra piece of information from an attribute (not child::text).
The attibute is attached to the same element that I am looping through, and i can't seemt o find a way to access it. tried so many variations, but everything breaks the whole MT installation until I've removed the line.
Example plugin code:
xpath:
foreach: /userInfo/assets/asset
get:
title: name/child::text()
thumbnail: url/child::text()
url: attribute::id
Example of xml:
Orbo
http://ll-755.ea.com/spore/static/thumb/500/000/755/500000755507.png
I need that "id" attribute to complete the stream and I am at a complete loss as to how to get to it!
Thanks in advance.
Richard

The xml should read like this: Orbo http://ll-755.ea.com/spore/static/thumb/500/000/755/500000755507.png
OK, this forum is confusing the hell out of me, here is a link to an example xml file!
http://www.richardbenson.co.uk/files/code/sporeactionstream/example.txt
Solved it buy creating my own XML in ASP then using action streams to read that.
Also writing Perl in Dreamweaver means you can't use carriage returns, putting one in breaks MT!