What does a non validating xml parser do
I am using Xerces for C , but I guess this is ultimately a case of correctly understanding XML concepts. Parsers are not required to validate by default..you sure you've set it to validate, and you're able to read errors?
In code, the parser doesn't find the error and I wonder if that's normal behaviour or there is a bug somewhere. void set Do Schema(const bool) true: Enable the parser's schema support. default: false note If set to true, namespace processing must also be turned on.
Originally, I would treat this as an error but then I changed it recently, after I noticed that some files where not processed, although there was absolutely nothing wrong with them.
The location of the error didn't give me any indication as what went wrong, so I decided to ignore all the recoverable errors.
If the validation failed because, for example, a complex type was not correct, this might not be recoverable, because now the very structure of the document is in question.
If a recoverable error occurs, but the document has nothing wrong with it, maybe it's because the parser has not resolved an external of some kind?
The interface of this abstract class has two functions called “error” and “fatal Error”.I will try creating a SAX Parser, see if it makes any difference. Eddie I tried with the SAXParser and still the error is not caught.As you all can see, I am still lost in the XML jungle. I remembered something that I noticed with the Xerces DOMParser as well.Like I said, I have no control on the schema and I do not generate the XML messages.All I need to do is open them, validate them against the schema and save them in a database.
This being the case, my question now becomes: In which cases such a recoverable error is detected?