On Tue, May 6, 2008 at 8:44 AM, Jens Alfke <[EMAIL PROTECTED]> wrote:

>
> On 5 May '08, at 3:36 PM, Christian Graus wrote:
>
>  OK - thanks.  I will try that.  My reading had me thinking that
> > NSXMLElement and NSXMLDocument are both derived from NSXMLNode, and that
> > anyting bar the root was an NSXMLElement, with methods returning NSXMLNode
> > as a base class to all nodes.
> >
>
> Attributes are nodes but not elements (they can't have children.) It's
> like that in DOM too.
>
>
*grin* yeah, I know, but in the DOM, they have a node type of their own, and
a collection through which they can be accessed.  attributeForName will fill
that purpose, when I get it working, but the code I posted is the result of
me changing things in every way I could think of, trying to get it to return
me something of value.  As I said, I suspect that through your help, I'll be
able to properly debug this code now and I'll figure out what's going on.  I
guess learning XCode, the general Mac look and feel, Objective C and a new
way of parsing XML in one night was a little too much to bite off....

Christian
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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