NSXMLDocument and fetching attributes with name spaces?
NSXMLDocument and fetching attributes with name spaces?
- Subject: NSXMLDocument and fetching attributes with name spaces?
- From: Colin Cornaby <email@hidden>
- Date: Tue, 8 Aug 2006 13:38:10 -0700
Hi,
I've been working on a project that involves parsing an Atom RSS
feed. I have added my own custom attributes to the feed. In my
current example feed, I'm internally associating my attributes with
each name space like so:
<link rel="enclosure" href="http://whitemagiclabs.com/updates/
Radio1.1.pkg" length="46734920" radio:platform="MacOS"
radio:kind="combo"/>
The problem is, if I externally define the name space, my attributes
will end up looking like this:
<link rel="enclosure" href="http://whitemagiclabs.com/updates/
Radio1.1.pkg" length="46734920" platform="MacOS" kind="combo"/>
My parser, which uses NSXMLDocument, now has to look for two
different attribute names, one with the namespace defined with the
attribute, and one with the namespace and attribute defined
separately. Is there a nice Cocoa way to handle this? Or maybe I'm
confused on some XML standards here?
Thanks,
Colin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden