[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] Is it a well-formedness error to use a character not in the encoding specified by the XML declaration?
- From: "Michael Kay" <mike@saxonica.com>
- To: <rjelliffe@allette.com.au>,<xml-dev@lists.xml.org>
- Date: Fri, 19 Mar 2010 09:42:43 -0000
> So I don't think it is correct behaviour to fall back to any
> character, including U+FFFD, especially silently.
It's not correct behaviour for an XML parser, certainly.
However, there may be cases where you want to put a repair step into your
processing pipeline that turns non-XML files into well-formed XML that the
parser will accept. It's better to fix such problems at source, but if you
can't, then trying to repair the data is an option. It's just not the job of
the XML parser to do this.
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]