[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: well-formedness error




James Robertson wrote:


I'll point out again that I handle bad XML (not missing tags, but a lot of other errors) in BottomFeeder - and I have not

-- written a custom parser
-- do not use Regex
-- do not use the Universal Parser

There are a lot of wild assumptions floating around as to what has to be done in order to handle errors in XML - I spent a few minutes on this problem many months ago, and haven't so much as looked at that code since.

I use the stock parser that ships with VisualWorks (the tool I use to build BottomFeeder) - and I simply subclassed the parser and overrode a few methods. Generally speaking, that meant changing places the parser raised an error and bailed to error logging and continuing.

I spent an aggregate total of maybe 15 minutes on this entire problem, broken up into a handful of 3-5 minute sessions over the course of a few months.....

Overriding/subclassing specific parts of an XML parser isn't something people *in general* can do. So it may have worked for you, but it won't for many others.


Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760