don't depend on constants from javax.xml.XMLConstants from JRE, stay compatible with geronimo-stax
git-svn-id: https://svn.apache.org/repos/asf/poi/tags/REL_3_7@1026608 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
de68d3da62
commit
c467de1e22
|
@ -26,7 +26,6 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.Vector;
|
||||
|
||||
import javax.xml.XMLConstants;
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
|
@ -255,7 +254,7 @@ public class XSSFExportToXml implements Comparator<String>{
|
|||
private boolean isValid(Document xml) throws SAXException{
|
||||
boolean isValid = false;
|
||||
try{
|
||||
String language = XMLConstants.W3C_XML_SCHEMA_NS_URI;
|
||||
String language = "http://www.w3.org/2001/XMLSchema";
|
||||
SchemaFactory factory = SchemaFactory.newInstance(language);
|
||||
|
||||
Source source = new DOMSource(map.getSchema());
|
||||
|
|
Loading…
Reference in New Issue