Maintains a table of boolean, String, and Object parameters such as canonical-form and error-handler
Makes it possible to change what normalizeDocument()
does by modifying these parameters
Java binding:
package org.w3c.dom;
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);
public DOMStringList getParameterNames();
}
Standard parameters include:
canonical-form
, default false
, optionalcdata-sections
, default true, requiredCDATASection
nodes in the document
check-character-normalization
, default false, optionalcomments
, default trueComment
nodes in the document.
datatype-normalization
, default false, optionalelement-content-whitespace
, default true, optionalentities
, default true, requiredEntityReference
nodes in the
documenterror-handler
, required (non-boolean)DOMErrorHandler
objectinfoset
, default true, requirednamespaces
, default true, optionalnamespace-declarations
, default true, requiredAttr
nodes in the document.normalize-characters
, default false, optionalschema-location
, optionalschema-type
, String, optionalsplit-cdata-sections
, default true, required]]>
validate
, default false, optionalvalidate-if-schema
well-formed
, default true, optionalImplementations may also define their own custom parameters