poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r1074920 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
Date Sat, 26 Feb 2011 20:52:51 GMT
Author: yegor
Date: Sat Feb 26 20:52:50 2011
New Revision: 1074920

URL: http://svn.apache.org/viewvc?rev=1074920&view=rev
Log:
tweaked validation of xml to keep Gump quiet

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java?rev=1074920&r1=1074919&r2=1074920&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java Sat Feb 26
20:52:50 2011
@@ -134,7 +134,7 @@ public class XSSFExportToXml implements 
         if (isNamespaceDeclared()) {
             root=doc.createElementNS(getNamespace(),rootElement);
         } else {
-            root=doc.createElement(rootElement);
+            root = doc.createElementNS("", rootElement);
         }
         doc.appendChild(root);
 
@@ -339,7 +339,7 @@ public class XSSFExportToXml implements 
         NamedNodeMap attributesMap = currentNode.getAttributes();
         Node attribute = attributesMap.getNamedItem(attributeName);
         if (attribute==null) {
-            attribute = doc.createAttribute(attributeName);
+            attribute = doc.createAttributeNS("", attributeName);
             attributesMap.setNamedItem(attribute);
         }
         return attribute;
@@ -350,7 +350,7 @@ public class XSSFExportToXml implements 
         if (isNamespaceDeclared()) {
             selectedNode =doc.createElementNS(getNamespace(),axisName);
         } else {
-            selectedNode =doc.createElement(axisName);
+            selectedNode = doc.createElementNS("", axisName);
         }
         currentNode.appendChild(selectedNode);
         return selectedNode;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message