XML - System Events vs XMLlib
XML - System Events vs XMLlib
- Subject: XML - System Events vs XMLlib
- From: Wayne Melrose <email@hidden>
- Date: Wed, 29 Aug 2007 14:50:06 +0200
I have a project where I'm forced to use System Events and not
XMLLib.. Emmanuel, I knew you were going to say it. :) . I use
XMLlib for other projects, however, this one requires no installs on
machines as the project leaders don't want it to involve any set up
on the computers that will be running it.
sigh..
I had a look around last night for some sample code, and every time I
looked it up it seemed to result in people suggesting XMLLib and not
using System Events..
Getting to the point..
I tried to find some examples of System Events parsing a plist file..
Didn't get much..
Other people have asked here if there is any good suggestions for
references, or sample code of System Event's parsing XML.. ??
There is SOME stuff out there, but it would be great to know if there
is something as comprehensive as XMLlib out there for system events..
Do Apple have a plan for this? or are they just leaving it up to
third party suppliers to do the work? Or have they done the work and
I haven't found it?
Here's a sample of what I want..
--- the xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keyname</key>
<integer>8</integer>
<key>creation</key>
<string>2007:06:12 20:13:52</string>
<key>happy</key>
</false>
</dict>
</plist>
How do I I search for "creation" and return the string value?
How to I search for "happy" and return "false"?
Thanks in advance..
Wayne Melrose
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden