Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML




On 17 Nov 2004, at 00:10, Finlay Dobbie wrote:

On Tue, 16 Nov 2004 08:41:07 -0800, George Warner <email@hidden> wrote:
On Mon, 15 Nov 2004 17:25:03 -0600, "Steve Mills" <email@hidden>
wrote:


I've read the docs and I just don't understand. How can I take a .plist
file, read and parse it, then iterate through each element? The .plist
root is an array, each element in the array is a dictionary. Somewhere
in the docs it illustrates how to use CFXMLTreeCreateFromData, but the
resulting tree was nil. I'm totally confused about all the nodes and
trees and property lists. Anybody have some sample source?

If all the XML items are CF objects (strings, arrays, properties, etc.) then
you can use:

<nitpick>CF property list types, not CF "objects"</nitpick> ;-)

And even then i recall some extra restrictions, eg it didn't like CFDictionaries that had CFNumbers as keys.

Fred

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >re: XML (From: George Warner <email@hidden>)
 >Re: XML (From: Finlay Dobbie <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.