Re: Traversing an NSXML subtree
Re: Traversing an NSXML subtree
- Subject: Re: Traversing an NSXML subtree
- From: Justin Palmer <email@hidden>
- Date: Thu, 28 May 2009 07:36:39 -0700
I had to do this recently. I needed to convert an NSXMLDocument to an
NSDictionary. If you're interested, you can find the code on GitHub:
http://github.com/Caged/aixmlserialize/blob/5322baec2f075d6f4f3bf9cab53b6a606c48ad76/src/AIXMLElementSerialize.m
Justin Palmer
http://alternateidea.com | http://entp.com
On Wed, May 27, 2009 at 1:14 PM, McLaughlin, Michael P. <email@hidden>wrote:
> In reviewing the NSXML documents, I found no really simple way to traverse
> a
> subtree of an NSXMLDocument. That is, traverse from the root until you hit
> the node with the right name then pretend that that node is the root of a
> smaller tree and traverse just the latter. [Everything I found talked only
> about sibs and (immediate) children, not grandchildren, etc.]
>
> Since this is such a common thing to do, I'm guessing that I must have
> misread the docs somehow.
>
> Could someone clue me in as to the preferred method to do a subtraversal?
>
> TIA.
>
> --
> Mike McLaughlin
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden