Re: [xml-dev] Error and Fatal Error

From
Andrew Welch <>
To
Date
2011-07-16T17:35:23Z
ID
<CAEG2duCZHrXp-MmNwjrYj4cs7M=->
Thread
Re: [xml-dev] Error and Fatal Error
> I hunted around the .Net framework hoping to find such
> a parser which allowed me to repair the XML but I couldn't
> find one.

The usual approach here is to reject the input as 'not xml' and then
go through some feedback loop with the supplier to correct their
non-xml.  The next stage (if you have to) is to accept the feed with
its faults, and insert some preprocessor to tidy up the known issues.

One preprocessor could be to convert all bytes over 255 to character
refs, to work around encoding issues.

-- 
Andrew Welch
http://andrewjwelch.com