Hi,

Im trying to set the DOM3 DOMErrorHandler through the DOMConfiguration
interface and I get a type mismatch error. Code looks like this:

PSVIDocumentImpl psviDocument = new PSVIDocumentImpl();

DOMConfiguration domConfig = psviDocument.getDomConfig();

//myErrorHandler implements XMLErrorHandler(Xni), ErrorHandler(Sax), and
//                          DOMErrorHandler
domConfig.setParameter("error-handler", myErrorHandler);

The error I get is:
org.w3.dom.DOMException: TYPE_MISMATCH_ERROR: The value for this parameter
name is incompatible with the expected value type

Should I be implementing some other interface? The resource-resolver and
other parameters I set work fine.

Thanks,
Nikhil





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to