Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit c467de1e220af682dc78000172095f2e3f020c7a 1 parent de68d3d
Yegor Kozlov authored
View
3  src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
@@ -26,7 +26,6 @@ Licensed to the Apache Software Foundation (ASF) under one or more
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 void exportToXML(OutputStream os, String encoding, boolean validate) thro
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());
Please sign in to comment.
Something went wrong with that request. Please try again.