• 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
How do I save to disk a XML data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I save to disk a XML data


  • Subject: How do I save to disk a XML data
  • From: Emile Schwarz <email@hidden>
  • Date: Sun, 15 May 2005 13:26:11 +0200

Hi all,

here’s where I go in  the use of XML data:


The AppleScript: ----------------

tell application "Finder"
tell application "System Events"
-- initialize the variables
set zeXML to ""
set myXML to XML data

-- fills the zeXML variable
set zeXML to "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Root Group=\"The Rolling Stones\" Version=\"1\"></Root>"

-- creates a new XML data object
set myXML to make new XML data with properties {name:"My first XML", text:zeXML}

-- return the properties of the XML data object
return properties of myXML -- this line is for the tutorial only
end tell
end tell



The result: -----------

{class:XML data, name:"My first XML", text:"<?xml version=\"1.0\" encoding=\"UTF-8\"?><Root Group=\"The Rolling Stones\" Version=\"1\"></Root>"}


Did you know how I can save it to disk ?

TIA,

Emile


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: What is your feeling about the XML Suite (System Events) ?
  • Next by Date: Re: Script Editor hangs on "Open Dictionary"
  • Previous by thread: Re: What is your feeling about the XML Suite (System Events) ?
  • Next by thread: applescript and Preview
  • Index(es):
    • Date
    • Thread