How do I save to disk a XML data
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