• 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
Re: NSXMLElement -stringValue and whitepsace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSXMLElement -stringValue and whitepsace


  • Subject: Re: NSXMLElement -stringValue and whitepsace
  • From: Klaus Backert <email@hidden>
  • Date: Mon, 24 Nov 2008 10:35:11 +0100


Am 24.11.2008 um 02:41 schrieb Keith Blount:

Thanks for trying... It's a shame... I have an OPML importer (no export) working based on old code I had found based on CFXMLTreeRef, but I was hoping to write an importer/exporter based on NSXMLDocument, and this is the one sticking point - everything else has been trivial with the NSXMLDocument class. Is this just an oddity with the OPML specs, that they allow such whitespace in an attributes when XML in general doesn't? Or is it just a limitation of NSXMLNode attributes? And does this mean that there is just no way of doing it using NSXMLDocument and that I'll have to look for a different solution altogether?

It's known in the "XML scene", that there is an eval tendency to use attributes too much where nodes were more appropriate. This is a failure made by designers of XML data structures, not by the designers of XML. Your case may be one of those.


If it's possible anyhow, someone should redesign the structure of the XML data your application uses. But it may be – as it is so often – that you have to handle this as fixed.

Klaus

_______________________________________________

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:
This email sent to email@hidden


References: 
 >Re: NSXMLElement -stringValue and whitepsace (From: Keith Blount <email@hidden>)

  • Prev by Date: Killing a Thread
  • Next by Date: Re: Remove HTML Tags
  • Previous by thread: Re: NSXMLElement -stringValue and whitepsace
  • Next by thread: Re: NSXMLElement -stringValue and whitepsace
  • Index(es):
    • Date
    • Thread