]> source.dussan.org Git - poi.git/commitdiff
don't depend on constants from javax.xml.XMLConstants from JRE, stay compatible with... tags/REL_3_7 REL_3_7
authorYegor Kozlov <yegor@apache.org>
Sat, 23 Oct 2010 12:15:57 +0000 (12:15 +0000)
committerYegor Kozlov <yegor@apache.org>
Sat, 23 Oct 2010 12:15:57 +0000 (12:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/tags/REL_3_7@1026608 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java

index 66209ed612e5910a88f968905e95f7849bae598d..fb0370caf40df676c5ce9fa677abeaad1a3473f8 100644 (file)
@@ -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());