• 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 08:08:45 +0900


On Mar 25, 2017, at 6:20, Steve Mills <email@hidden> wrote:
 
(tmxBody's addChild:TUElement)
(tmxRoot's addChild:tmxHeader)
(tmxRoot's addChild:tmxBody)

Are you sure all of these are being added to the correct parent?

the structure being:

<tmx>
<header></header>
<body>
<tu></tu>
<tu></tu>
<tu></tu>
</body>
</tmx>

both tmxBody and tmxHeader are children of tmxRoot,
and TUElement is child of tmxBody,

so I'm sure I'm having the correct parent/child relation, but I'm not sure what I wrote is adding the right child to the right parent, although it looks like it does.

 return tmxRoot's XMLString() as text

And if you want the <?xml...> junk, shouldn't you be getting the NSXMLDocument's text instead of the root object's?

That's correct, but my first problem is that I can't seem to find the correct syntax to *create* the NSXMLDocument.
I'm looking at:
https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/NSXML_Concepts/Articles/CreatingXMLDoc.html#//apple_ref/doc/uid/TP40001255-96936

And at Shane's book and I can't seem to make sense of what's written in either place.

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: 
 >Re: Lists to XML ? (From: Steve Mills <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