Mailing Lists: Apple Mailing Lists

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

How do I create an empty attribute NSXLNode?



I'm trying to parse some (x)HTML code using NSXMLDocument and am
trying to add an empty attribute such as 'checked' as in:

<input type=checkbox checked>My checkbox</input>

However, I can't seem to find a way to create an attribute without an
associated value. Am I missing something obvious here?

How do I create an NSXMLNode for the 'checked' attribute?

Many thanks in advance.

-- 
Mark Munz
unmarked software
http://www.unmarked.com/
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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.