Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - illegal character in xml file [Thread Next] Re: illegal character in xml fileTo: 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
