I work with Eclipse, Spring MVC and Maven.The Java version is 1.6
I have the following method
public static DocumentBuilder getBuilder(ServletContext servletContext)
{
DocumentBuilderFactory factory =DocumentBuilderFactory.newInstance();
factory.setValidating(true);
DocumentBuilder builder = null;
try {
factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
builder = factory.newDocumentBuilder();
I have an error in the eclipse editor in the line:
factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING,
The error is
FEATURE_SECURE_PROCESSING cannot be resolved or not is a field
In the editor Eclipse I see:
Maven dependencies are:
Why don't I have the variable
XMLConstants.FEATURE_SECURE_PROCESSING ?



