Hi,

The current DOMConfiguration functions do not support primitive data
types:

public interface DOMConfiguration {
    public void setParameter(String name, 
                             Object value)
                             throws DOMException;

    public Object getParameter(String name)
                               throws DOMException;

    public boolean canSetParameter(String name, 
                                   Object value);
}


The following code should give a better result:

documentConfig.canSetParameter("validate", Boolean.TRUE) 
documentConfig.setParameter("validate", Boolean.TRUE) 

Carla



> -----Original Message-----


I'm trying to follow the recipe in
http://xml.apache.org/xerces2-j/faq-dom.html#faq-7 but I don't seem to
be able to set the "validate" parameter on the DOMConfiguration object.
In particular, 

 

documentConfig.getParameter("validate") returns false,

documentConfig.canSetParameter("validate", true) returns false,

documentConfig.setParameter("validate", true) throws a FEATURE_NOT_FOUND
exception.

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

Reply via email to