• 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
Getting started with XML?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Getting started with XML?
      • From: Christopher Nebel <email@hidden>
    • Re: Getting started with XML?
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: [ANN] Next Philadelphia Area AppleScript Users Group Meeting
  • Next by Date: Re: Getting started with XML?
  • Previous by thread: [ANN] Next Philadelphia Area AppleScript Users Group Meeting
  • Next by thread: Re: Getting started with XML?
  • Index(es):
    • Date
    • Thread