XML Validation Error Customizer

org.eclipse.wst.xml.core.errorCustomizer

This extension point is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

The error customizer extension point allows a client to contribute an error customizer for a specific namespace. The error customizer can provide error messages that are more domain specific than the generic error messages provided by the underlying generic XML validator.

<!ELEMENT extension (errorCustomizer+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT errorCustomizer EMPTY>

<!ATTLIST errorCustomizer

namespace CDATA #REQUIRED

class     CDATA #REQUIRED>


The following is an example of an Error Customizer contribution:
   

<extension id=

"sampleErrorCustomizer"

name=

"Sample Error Customizer"

point=

"org.eclipse.wst.xml.core.errorCustomizer"

>

<errorCustomizer namespace=

"http://sample.namespace"

class=

"org.eclipse.wst.xml.core.SampleErrorCustomizer"

/>

</extension>

The supplied class must implement org.eclipse.wst.xml.core.internal.validation.errorcustomization.IErrorMessageCustomizer.