Hello,
I'm using the NSXML classes to write out various strings, and it seems that
these classes convert "<" to "<" but not ">" to ">", which I find odd.
For instance, consider the following code snippet:
NSXMLElement*element = [[[NSXMLElementalloc]
initWithName:@"Test"stringValue:@"< & >"] autorelease];
NSLog (@"%@", element);
The output is:
<Test>< & ></Test>
Is this correct, or is this a bug? Or am I missing something? Do I therefore
need to replace all occurrences of ">" with ">" myself to generate better
XML?
Many thanks and all the best,
Keith
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]