Hi,
IMHO this is not an issue of breaking a specification, it's an issue of
XML readability.
One of the main reasons we use XML in the first place it's because it is
human readable - otherwise, we would be using something like ASN.1 instead.
I think that escaping high ascii characters makes the XML unreadable.
For example, imagine an XML written in French (they even use accent
characters in tag names, I've seen it) - escaping them would look really
unfriendly to a French guy.
Regards,
Catalin
Milosh Milosavljevic wrote:
Hi,
I do not have really a specification link. It is more of a googling
around and finding lots of articles, which addresses the xml escaping
issue. I didn't come across a need for escaping high-ascii characters.
Only specific xml entities. I am not really sure if there is an actual
need for escaping high ascii characters. If encoding flag is properly
set in input or output stream for xml parser I do not see the cause
for issues if those characters are left as they were.
In case that you actully have a specification link stating the need
for escaping of high ascii characters I would be more than happy to
change my source code to comply with that specification.
Thanks a lot for the quick reply,
Milosh
Stephen Colebourne wrote:
Have you got a specification link that you believe we are breaking?
Stephen
Milosh Milosavljevic wrote:
Hi,
I am not sure why StringEscapeUtils.escapeXml always tries to
escape high ascii characters together with xml entities. In case
that this is just an issue connected to HTML escaping, I would
suggest to make a flag for high ascii escaping. I did that flag in
my local branch of commons-lang and I can send it to you if there is
a need.
Thanks,
Milosh
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]