Re: Lists to XML ?
Re: Lists to XML ?
- Subject: Re: Lists to XML ?
- From: Shane Stanley <email@hidden>
- Date: Sat, 25 Mar 2017 10:51:41 +1100
On 25 Mar 2017, at 2:35 am, Jean-Christophe Helary <email@hidden> wrote:
# creation of the <tu> element, no attributes set TUElement to (current application's NSXMLNode's elementWithName:"tu")
# processing the TM data, from the second row repeat with i from 2 to length of myTMData # myTU is a given row, contains as many <tuv> elements as there are items in rows of myTMData set myTU to item i of myTMData repeat with j from 1 to length of myTU
Change the order -- you want a new tu element each time through the first repeat loop:
# processing the TM data, from the second row repeat with i from 2 to length of myTMData # myTU is a given row, contains as many <tuv> elements as there are items in rows of myTMData set myTU to item i of myTMData # creation of the <tu> element, no attributes set TUElement to (current application's NSXMLNode's elementWithName:"tu") repeat with j from 1 to length of myTU
Then:
end repeat end repeat (tmxBody's addChild:TUElement)
Again, change the order:
end repeat (tmxBody's addChild:TUElement) end repeat
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden