You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ye...@apache.org on 2010/10/23 14:15:57 UTC
svn commit: r1026608 -
/poi/tags/REL_3_7/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
Author: yegor
Date: Sat Oct 23 12:15:57 2010
New Revision: 1026608
URL: http://svn.apache.org/viewvc?rev=1026608&view=rev
Log:
don't depend on constants from javax.xml.XMLConstants from JRE, stay compatible with geronimo-stax
Modified:
poi/tags/REL_3_7/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
Modified: poi/tags/REL_3_7/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
URL: http://svn.apache.org/viewvc/poi/tags/REL_3_7/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java?rev=1026608&r1=1026607&r2=1026608&view=diff
==============================================================================
--- poi/tags/REL_3_7/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java (original)
+++ poi/tags/REL_3_7/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java Sat Oct 23 12:15:57 2010
@@ -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
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());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org