Re: Property List Services and XML
Re: Property List Services and XML
- Subject: Re: Property List Services and XML
- From: Matt Neuburg <email@hidden>
- Date: Mon, 16 Sep 2002 10:15:30 -0700
On Sun, 15 Sep 2002 17:36:37 +0100, Pete Carss <email@hidden> said:
>
There seems to be a dirth
dearth
>
of fully matured XML technologies available
>
to Cocoa
I see this claim from time to time, but my own experience is just the
opposite. Bear in mind that arbitrary XML structures are not directly
translateable to NSArray, NSDictionary, or any other built-in collection.
Therefore they must be left as a CFXMLTreeRef. I think the whole
implementation of tree, node, subtree, nodetype, nodestring, and so forth,
is positively brilliant.
It takes only a moment to write utility routines for dealing with this so
that from then on you can do whatever it is you need to do. For example it
took me about five minutes to write a couple of routines so that I can walk
down the structure using tag names to reach a certain tag and its sub-tags
and get their values by tag name. So, sure, those routines are basically
Carbon, but with them out of the way, my contact with the XML from the rest
of my program feels like pure Cocoa to me. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.