[OT] Users (was RE: Naive XML questions)

2020-10-26 Thread Ralph DiMola via use-livecode
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

Re: Naive XML questions

2020-10-26 Thread Graham Samuel via use-livecode
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

Re: Naive XML questions

2020-10-25 Thread Alex Tweedly via use-livecode
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

Re: Naive XML questions

2020-10-25 Thread Ken Ray via use-livecode
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,

Re: Naive XML questions

2020-10-25 Thread Bernard Devlin via use-livecode
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:

Re: Naive XML questions

2020-10-25 Thread Alex Tweedly via use-livecode
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