Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: illegal character in xml file

From: Joseph Kesselman <keshlam-nospam@-------.--->
To: NULL
Date: 2/6/2007 12:20:00 PM

Andy Fish wrote:
> surely it's legal to put any character reference in 
> an XML file as long as it's correctly encoded?

No, it isn't. XML 1.0 limits the acceptable characters, and character 
references do not work around those limits. (XML 1.1 relaxes this; see 
the specs.)

 > and if it's not, how come the
> framework serialized it for me without complaining?

Becuase the framework thought it was writing XML 1.1? Or, more likely, 
because the framework simply didn't bother checking. Enforcing these 
rules does have performance costs, which leads some systems to default 
to not doing so (or not offer the option at all, expecting that you'll 
do it earlier in the pipeline -- "If it hurts when you do that...").



-- 
Joe Kesselman / Beware the fury of a patient man. -- John Dryden


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent