On Feb 9, 2010, at 1:03 PM, Keith Blount wrote:
Great, many thanks for the reply, and for the location of the
information in the XML docs, that's very helpful. Unfortunately, it
seems that the NSXML classes don't fix the '>' in the ']]>' case
either, though:
NSXMLElement*element = [[[NSXMLElementalloc]
initWithName:@"Test"stringValue:@"< & > ]]>"] autorelease];
NSLog (@"%@", element);
The ">" in "]]>" only needs to be escaped when it's inside a CDATA, I
believe. (Since that string marks the end of a CDATA.)
—Jens_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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/archive%40mail-archive.com
This email sent to arch...@mail-archive.com