[SOLVED]How do I access a tag on a node with the XML plugin?

Get help using Construct 2

Post » Sat Mar 08, 2014 6:40 am

I'm trying to pull an RSS feed into C2 using the AJAX & XML plugins. Everything works fine except for pulling in the <content:encoded> node from the feed since, if I understand things correctly, encoded is a tag on the content node. Anyone have any idea how the expression should be formatted to read the content of this node? Pulling in <description> works fine, but lacks the html formatting of <content>, which is why I'm hoping to pull that in.

Test feed:
http://pixelmetal.com/category/SombreroDev/feed

Working expression:
XML.StringValue("description")

Not working expression:
XML.StringValue("content:encoded")
Last edited by digitalsoapbox on Sat Mar 15, 2014 12:43 am, edited 1 time in total.
B
70
S
40
G
24
Posts: 517
Reputation: 20,068

Post » Sun Mar 09, 2014 3:37 pm

@Ashley, could you provide any guidance on the syntax for this?
B
70
S
40
G
24
Posts: 517
Reputation: 20,068

Post » Sat Mar 15, 2014 12:43 am

Nevermind, got it sorted. For anyone else who runs into the content: encoded issue: just use replace when parsing the xml to replace "content:encoded" with "content" and all works as expected.
B
70
S
40
G
24
Posts: 517
Reputation: 20,068


Return to How do I....?

Who is online

Users browsing this forum: Davlin and 7 guests