Re: Lists to XML ?
Re: Lists to XML ?
- Subject: Re: Lists to XML ?
- From: Jean-Christophe Helary <email@hidden>
- Date: Sat, 25 Mar 2017 08:08:45 +0900
(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:
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