Re: NSXMLElement -stringValue and whitepsace
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