Re: XML To Array

2019-07-09 Thread Bob Sneidar via use-livecode
I checked the xml and there are indeed duplicates. The current xmlToArray function is likely the only way to view and modify the xml to add entries so I can reimport them. The xml is so complex though that I don't think I'll tackle it. Bob S > On Jul 3, 2019, at 09:28 , Mark Wieder via use-l

Re: XML To Array

2019-07-03 Thread Mark Wieder via use-livecode
On 7/3/19 7:44 AM, Bob Sneidar via use-livecode wrote: Oh good point. Didn't think about duplicates. Obviously I don't really understand xml too well. I've been thinking of it as a text representation of a database where unique keys would be maintained somehow. Well, it's not guaranteed that

Re: XML To Array

2019-07-03 Thread Mark Wieder via use-livecode
On 7/2/19 6:44 PM, Terry Judd via use-livecode wrote: So admittedly I have modified Trevor's code a bit (mainly so I don't get the @ symbols associated with parameters but also so that instead of ["someNode[1]"] I get ["someNode"][1], but for me that XML snippet creates an array that looks lik

Re: XML To Array

2019-07-03 Thread Bob Sneidar via use-livecode
wrote: > >> Hi all. >> I'm revisiting converting XML to Array. Toshiba has an export file for their >> scan templates in XML format. It's pretty complicated as you can imagine. I >> was hoping that I could use Trevor's XML to Array functions to get nodes

Re: XML To Array

2019-07-02 Thread Terry Judd via use-livecode
bine"]["class"] = TV_show ["combine"]["sources"]["agent"][1] = com.plexapp.agents.none ["combine"]["sources"]["agent"][2] = com.plexapp.agents.localmedia ...which seems ok? Terry... On 3/7/19, 9:17 am, "use-livecode on be

Re: XML To Array

2019-07-02 Thread Mark Wieder via use-livecode
On 7/2/19 2:29 PM, Bob Sneidar via use-livecode wrote: Hi all. I'm revisiting converting XML to Array. Toshiba has an export file for their scan templates in XML format. It's pretty complicated as you can imagine. I was hoping that I could use Trevor's XML to Array functions to

XML To Array

2019-07-02 Thread Bob Sneidar via use-livecode
Hi all. I'm revisiting converting XML to Array. Toshiba has an export file for their scan templates in XML format. It's pretty complicated as you can imagine. I was hoping that I could use Trevor's XML to Array functions to get nodes that look something like: JobTemplates

Re: XML to array - what are the options?

2011-05-09 Thread Keith Clarke
Hi Trevor, Thanks for the steer, the stack update - and for creating and sharing this great resource! Best, Keith.. On 9 May 2011, at 13:21, Trevor DeVore wrote: > > Keith, > > The latest version of the routines can be found on revOnline: > > http://revonline2.runrev.com/stack/571/XMLAndArrays

Re: XML to array - what are the options?

2011-05-09 Thread Trevor DeVore
On Sun, May 8, 2011 at 1:48 PM, Keith Clarke < keith.cla...@clarkeandclarke.co.uk> wrote: > Thanks Stephen, > A mutli-dimensional array primer and worked-example stack working on XML > file data - just what I needed! > Keith, The latest version of the routines can be found on revOnline: http://

Re: XML to array - what are the options?

2011-05-08 Thread Keith Clarke
Keith.. On 8 May 2011, at 17:41, stephen barncard wrote: > Search the archives - Trevor has released his xml-to-array and array-to-xml > routines to this list. They were short enough to paste into an email. > > On 8 May 2011 09:00, Keith Clarke wrote: > >> Jim.

Re: XML to array - what are the options?

2011-05-08 Thread stephen barncard
Search the archives - Trevor has released his xml-to-array and array-to-xml routines to this list. They were short enough to paste into an email. On 8 May 2011 09:00, Keith Clarke wrote: > Jim. > Thanks for the response. > > Apologies - my question should have been more specific - ab

Re: XML to array - what are the options?

2011-05-08 Thread Keith Clarke
Jim. Thanks for the response. Apologies - my question should have been more specific - about concepts, techniques and examples of applying arrays to manipulating XML data, rather than tools. Notwithstanding that, it's good to know that Ken's library is the state of the art, as I been usin

Re: XML to array - what are the options?

2011-05-08 Thread Jim Ault
On May 8, 2011, at 3:03 AM, Keith Clarke wrote: Hi folks, I need to start learning about how best to convert XML files to arrays. There seems to be quite a lot of content around on this subject, so I'd really appreciate any pointers for where best to start my research. What is the state of

XML to array - what are the options?

2011-05-08 Thread Keith Clarke
Hi folks, I need to start learning about how best to convert XML files to arrays. There seems to be quite a lot of content around on this subject, so I'd really appreciate any pointers for where best to start my research. What is the state of the art regarding tools and techniques - and are there