[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: To continue parsing after a fatal error.
If the spec says it should be fatal, I agree, it should be treated as such. It's also pretty easy to stream the text through an illegal-character filter (on Unix or with cygwin installed on Win32, use the tr program) on the way into the XML parser, Jeff ----- Original Message ----- From: "Joshua Allen" <joshuaa@m...> To: "Jeff Greif" <jgreif@a...>; "Anoop A V" <anoop_scorpio@h...>; <xml-dev@l...> Sent: Tuesday, October 23, 2001 1:17 PM Subject: RE: To continue parsing after a fatal error. Actually, the invalid character error is per the XML 1.0 spec fatal. If Microsoft were to deviate from the W3C spec and make this ignorable, we would deserve the roasting we would get at the merciless hands of xml-dev list members. The reasoning behind the rule is that it prevents the spread of malformed XML, and thereby preserves interoperability. This is a good and necessary reason, although it is not much consolation when you are stuck trying to clean up bad XML. We should have some tools to make this easier..
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|