• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Lists to XML ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lists to XML ?


  • Subject: Re: Lists to XML ?
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Sat, 25 Mar 2017 10:12:25 +0900


On Mar 25, 2017, at 8:51, Shane Stanley <email@hidden> wrote:

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:

Ooops, that was pretty obvious. I was creating the <tu> element outside the loop, right under the <body> element...

Jean-Christophe
 _______________________________________________
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

References: 
 >Lists to XML ? (From: Jean-Christophe Helary <email@hidden>)
 >Re: Lists to XML ? (From: Shane Stanley <email@hidden>)
 >Re: Lists to XML ? (From: Jean-Christophe Helary <email@hidden>)
 >Re: Lists to XML ? (From: Steve Mills <email@hidden>)
 >Re: Lists to XML ? (From: Jean-Christophe Helary <email@hidden>)
 >Re: Lists to XML ? (From: Jean-Christophe Helary <email@hidden>)
 >Re: Lists to XML ? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Lists to XML ?
  • Next by Date: Re: Lists to XML ?
  • Previous by thread: Re: Lists to XML ?
  • Next by thread: Re: Lists to XML ?
  • Index(es):
    • Date
    • Thread