• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSXMLDocument and fetching attributes with name spaces?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Temporal XCode 2.4 problem in ADC
  • Next by Date: [Moderator] EOT Re: Temporal XCode 2.4 problem in ADC
  • Previous by thread: sorting problems with custom compare
  • Next by thread: testing for invisible files in a file browser
  • Index(es):
    • Date
    • Thread