Tim Cramer wrote:

I do not have my own error handler (HandlerBase is xerces class). I thought the DOMBuilder::parse () would through an exception if the xml data is not conform with the schema, wouldn't it?

Another test i have made is the following:

[stupid sourccode]

So what is the way to do it?
Or is it possible that schema support is not implemented for the DOMBuilder (DOM Level 3) yet (the canSetFeature() methods return TRUE, so it might be implemented...)? Thanks a lot for your help.


Tim

Ok. I think i have solved my problem. What I needed was a class like this:

   class XMLErrorHandler : public XNSQ DOMErrorHandler

And than overload:
    bool handleError(const XNSQ DOMError& error){

Tim

Reply via email to