user-pic

Actionstreams, XPath and attributes

Vote 0 Votes

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

3 Replies

| Add a Reply

Add a Reply

Forum Groups

151 405

Last Topic: MT Interface Missing by Sherri on Nov 10, 2008

36 144

Last Topic: Installation can't finish by Drazend on Nov 10, 2008

34 93

Last Topic: Creating your own Plug-in by jondauz on Nov 5, 2008

10 33

Last Topic: new licensing confusion by Neil Epstein on Aug 14, 2008

code.sixapart.com

62 226

Last Topic: Callback after blog publishing. by Tomato Interactive on Oct 27, 2008

34 98

Last Topic: Ajax Rating Plugin by kiran on Oct 17, 2008