XPath

Get help using Construct 2

Post » Mon Dec 16, 2013 8:13 pm

I read all the XPath instructions, but still do not get how it works!
Could you please help me with the following:

http://www.mediafire.com/download/xr2njk32h79w3cv/weather.capx

EDIT: Fixed the behaviour that may have been stopping you from opening.RecGames2013-12-16 20:50:08
Borka223 from RecGames
B
14
S
4
G
5
Posts: 39
Reputation: 2,987

Post » Mon Dec 16, 2013 11:10 pm

What are you trying to do exactly?

Have a look at this page: http://www.freeformatter.com/xpath-tester.html

Paste in your XML and enter the expression:
[code]/response/current_observation/display_location/city/text()[/code]
and you get the result:
[code]San Francisco[/code]

In C2 that would be
[code]XML.StringValue("/response/current_observation/display_location/city/text()")[/code]

Check the bottom of that page for a bunch of XPath examples.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,630


Return to How do I....?

Who is online

Users browsing this forum: DevinMurray, wizdigitech, Yahoo [Bot] and 13 guests