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. 

What I was hoping to do was take known SMB registrations from a Konica and 
integrate them into the XML file Toshiba uses to export/import those 
registrations. I was hoping to convery to an array, which I know how to 
manipulate, add the entries, then convert back to an XML file for import. 

Bob S


> On Jul 2, 2019, at 16:16 , Mark Wieder via use-livecode 
> <use-livecode@lists.runrev.com> 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 
>> that look something like:
>> JobTemplates
>>      GroupList
>>              Group1
>>                      Template1
>>                      Template2
>>                      Template3...
>>              Group2
>>                      Template1
>>                      Template2...
> 
> What are you hoping to get out of xml-to-array? Given that keys aren't 
> guaranteed to be unique, I think what you're seeing there makes sense. 
> Otherwise you'll stand the chance of losing data in translation. If you don't 
> convert to a numeric form with a concordance, as Trevor has done, I don't see 
> you you could possibly convert this xml to an array:
> 
> <combine class="TV_Show">
>    <sources>
>        <agent>com.plexapp.agents.none</agent>
>        <agent>com.plexapp.agents.localmedia</agent>
>    </sources>
> </combine>
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to