ecode-boun...@lists.runrev.com] On Behalf Of
Graham Samuel via use-livecode
Sent: Monday, October 26, 2020 10:46 AM
To: How to use LiveCode
Cc: Graham Samuel
Subject: Re: Naive XML questions
Thanks to all who replied, but Ken - you are spot on! I simply had no idea how
to address an individual
Thanks to all who replied, but Ken - you are spot on! I simply had no idea how
to address an individual node. I am not keen to use any method other than the
ones which already exist in the XML library, so this is the way for me.
One can sometimes (often, if I’m honest) be stymied by some very b
On 25/10/2020 18:51, Bernard Devlin via use-livecode wrote:
In his reply to you I think Alex is suggesting you use the handlers that
come with the Datagrid. These can convert xml to a LC array. You might
find it easier just to deal with a familair data structure rather than
learn XML.
I foun
Graham, here's the basic approach (assuming your XML is in the variable 'tXML'):
put revXMLCreateTree(tXML,false,true,false) into tTreeID
put "/gpx/trk/trkseg/trkpt[1]" into tNode -- the brackets identify
the instance of "trkpt" to work with
put revXMLAttribute(tTreeID,
In his reply to you I think Alex is suggesting you use the handlers that
come with the Datagrid. These can convert xml to a LC array. You might
find it easier just to deal with a familair data structure rather than
learn XML.
I found them here: http://revonline2.runrev.com/stack/571/XMLAndArray
I know nothing about it, so I can feel free to answer:-)
Don’t care about the file format- look at the array format, probably in the
IDE/debugger. That’s probably going to let you see how to address the
individual nodes.
Alex
Sent from my iPhone
> On 25 Oct 2020, at 17:21, Graham Samuel via us
I feel stupid, but even with Sarah Reichelt’s help, there are very very simple
things I can’t do with the LC XML functions. My current problem is this:
I have a series of XML files which are in fact .gpx files - a collection of GPS
coordinates representing a route on the Earth’s surface. There a