From: Yegor Kozlov Date: Sat, 23 Oct 2010 12:15:57 +0000 (+0000) Subject: don't depend on constants from javax.xml.XMLConstants from JRE, stay compatible with... X-Git-Tag: REL_3_7^0 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=852a9c484c4e7dc80f28629bd4674875044284ad;p=poi.git 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 --- diff --git a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java index 66209ed612..fb0370caf4 100644 --- a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java +++ b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java @@ -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{ 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());