Re: XML/plist parsing (Was: 'info for' braindead...)
Re: XML/plist parsing (Was: 'info for' braindead...)
- Subject: Re: XML/plist parsing (Was: 'info for' braindead...)
- From: Michael Terry <email@hidden>
- Date: Thu, 6 May 2004 15:22:14 -0700
On May 6, 2004, at 1:01 PM, Joseph Weaks wrote:
On May 6, 2004, at 8:42 AM, Gnarlodious wrote:
Entity Joseph Weaks spoke thus:
Any of you care to share your brilliantly economic handlers you've
created to parse XML?
Post an example of the key you want to read.
Well, as for plist files, let's assume the following sample. To keep
it simple, it has no nested arrays, <data>, or <dict>'s. However,
there is often a nested <dict> in arrays for instance, so it'd be nice
if the presence of one didn't break the handler. Ideally I'd like to
see a good way to implement a handler something like the following:
There's a free, vanilla AS library here called 'PListDOM':
http://applemods.sourceforge.net/mods/Data/index.php
... which completely parses any plist into AS data structures which you
can then query. Requires vanilla 'Loader', also available at the site
for free.
Mike
_______________________________________________
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.