Re: Lists to XML ?
Re: Lists to XML ?
- Subject: Re: Lists to XML ?
- From: Jean-Christophe Helary <email@hidden>
- Date: Sat, 25 Mar 2017 10:41:07 +0900
On Mar 25, 2017, at 10:27, Shane Stanley < email@hidden> wrote:
On 25 Mar 2017, at 2:35 am, Jean-Christophe Helary < email@hidden> wrote:
return tmxRoot's XMLString() as text
You'll probably find it easier when troubleshooting to use something like this instead:
return (tmxRoot's XMLStringWithOptions:((current application's NSXMLDocumentTidyXML) + (get current application's NSXMLNodePrettyPrint))) as text
That looks much better. Thank you. But once you make an XML document, you probably want to get its XMLData(), and write that to a file.
Yes, the return thing is just here temporarily.
If I want to write to a file, what's the difference between XMLString and XMLData ?
Is it possible to have the data nicely printed out with XMLData as in what you just proposed ? TMX users generally don't open files to check the contents, but when they do (to manually change a language attribute for ex) it's better to have the thing visually sorted.
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