Hi there,

I am trying to validate an XML document against a set of schemas. I have one master schema, and in this schema, I imported other namespaces. When I tried to run my code, I got the warning as shown in the subject line.

Following is my sample code for the validation, in whihc the method getSchemaURLs() was used to get a File[] object of schema files on my local machine.

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

factory.setNamespaceAware(true);
factory.setValidating(true);
factory.setIgnoringElementContentWhitespace(true);
factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaSource", getSchemaURLs());
builder = factory.newDocumentBuilder();

Can anyone tell me what's the reason for this warning? How can I avoid such warnings?
 
Thanks,
 
Mike


Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

Reply via email to