Getting started with XML?
Getting started with XML?
- Subject: Getting started with XML?
- From: Michelle Steiner <email@hidden>
- Date: Thu, 7 Dec 2006 12:57:07 -0700
property XMLfile : missing value
if XMLfile is missing value then set the XMLfile to choose file
tell application "System Events"
set foo to contents of XMLfile
end tell
This returns an alias to the file. The dictionary says:
contents (XML data) : the contents of the XML file; elements and
properties of the XML data may be accessed as if they were elements
and properties of the XML file
So how do I get the contents of the file? I tried
XML data of foo
but that returns an error
-- Michelle
--
"As a matter of general principle, I believe there can be no doubt
that criticism in time of war is essential to the maintenance of any
kind of democratic government ... too many people desire to suppress
criticism simply because they think that it will give some comfort to
the enemy to know that there is such criticism." -- Robert A. Taft,
December 19, 1941
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden