diff options
author | Yegor Kozlov <yegor@apache.org> | 2011-02-26 20:52:50 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2011-02-26 20:52:50 +0000 |
commit | a099116059b61fe7aad8c1446c3dcab03100aaa2 (patch) | |
tree | 99c875a7de8e677bfdce82fa30cdf1da6f3fb62d | |
parent | 7672d22266a1094c590da65da3272165a080a5e5 (diff) | |
download | poi-a099116059b61fe7aad8c1446c3dcab03100aaa2.tar.gz poi-a099116059b61fe7aad8c1446c3dcab03100aaa2.zip |
tweaked validation of xml to keep Gump quiet
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1074920 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java | 6 |
1 files changed, 3 insertions, 3 deletions
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 fb0370caf4..b5b4a6ba6e 100644 --- a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java +++ b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java @@ -134,7 +134,7 @@ public class XSSFExportToXml implements Comparator<String>{ 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 Comparator<String>{ 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 Comparator<String>{ if (isNamespaceDeclared()) { selectedNode =doc.createElementNS(getNamespace(),axisName); } else { - selectedNode =doc.createElement(axisName); + selectedNode = doc.createElementNS("", axisName); } currentNode.appendChild(selectedNode); return selectedNode; |