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 protected]>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 protected])
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/encytemedia%40gmail.com
>
> This email sent to [email protected]
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to