Accessing XML property list values with Applescript
Accessing XML property list values with Applescript
- Subject: Accessing XML property list values with Applescript
- From: "Jerry Podhajsky" <email@hidden>
- Date: Sun, 22 Dec 2002 10:57:13 -0600
- Thread-topic: Accessing XML property list values with Applescript
I'm using Late Night Software's XML Tools to parse an XML file that contains
property lists that look something like:
<dict>
<key>Item 1</key>
<string>Moe</string>
<key>Item 2</key>
<string>Larry</string>
<key>Item 3</key>
<string>Curley</string>
<key>Number of Stooges</key>
<integer>3</integer>
</dict>
I'm able to recursively loop through the XML file and get key names and
values. However, I don't know how to say "get the value for Item 3 in this
particular <dict> construction".
Anyone got a code sample that will demonstrate how to pick out a value in a
property list based on the key? I'm sure it's simple, I just can't find any
reference on it anywhere.
Thanks in advance. Happy Holidays!
--
Jerry Podhajsky
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.