Most XML parsers will fail after the first error in the document. In fact, IIRC, this is actually part of the “official” specification for parsers.
I am looking for something that breaks this rule. It should accept the given schema (assuming a valid schema) and xml input and try to continue working after the first error and either raise an event for each error or return a list when finished so that I can use it to create some kind of error report in document. This requirement comes from above, so try to prevent the purist from “but it makes no sense to continue” comments to a minimum.
I am looking for something that will evaluate both a well-formed document and whether it matches the pattern. Ideally, this would evaluate them as different classes of errors. I would prefer a .NET solution, but I could use a standalone .exe. If you know you are using a different platform, post it because someone might find it useful.
Update:
I expect that most of the documents in which I use it will be mostly well-formed. Perhaps they are included as data instead of amp amp here and there or random misplaced tags. I do not expect the parser to recover from everything, just to do its best to keep going. If the document is too beaten up, it should spit out as much as some “fatal, incapable of continuing” mistake can follow. Otherwise, the verification part of the circuit is quite simple.
source
share