discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stringByUnescapingXML in GSXML.m


From: Helge Hess
Subject: Re: stringByUnescapingXML in GSXML.m
Date: Fri, 10 Mar 2006 20:40:09 +0100

On Mar 10, 2006, at 20:15, Richard Frith-Macdonald wrote:
AFAIK, the only predefined entities in XML are the numeric unicode escapes and the five for < > & ' "

Exactly. One can read this up in the XML spec.

But still its interesting to ask what should happen with unknown entities if this method is called? It should probably raise an exception?
Just keeping them unexpanded in the content isn't very helpful.


--- Marko Riedel <markoriedelde@yahoo.de> schrieb:
BTW I also noticed that stringByUnescapingXML assumes that hexadecimal XML entities have the prefix &#0(x|X). This is not the case for HTML entities, where the prefix is &#(x|X).

And why would HTML escaping rules matter for *XML* unescaping? You need to implement/use an -stringByUnescapingHTML to do that ...

Greets,
  Helge
--
http://docs.opengroupware.org/Members/helge/
OpenGroupware.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]