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
This commit is contained in:
parent
7e3371bb15
commit
c5501130eb
@ -134,7 +134,7 @@ public class XSSFExportToXml implements Comparator<String>{
|
|||||||
if (isNamespaceDeclared()) {
|
if (isNamespaceDeclared()) {
|
||||||
root=doc.createElementNS(getNamespace(),rootElement);
|
root=doc.createElementNS(getNamespace(),rootElement);
|
||||||
} else {
|
} else {
|
||||||
root=doc.createElement(rootElement);
|
root = doc.createElementNS("", rootElement);
|
||||||
}
|
}
|
||||||
doc.appendChild(root);
|
doc.appendChild(root);
|
||||||
|
|
||||||
@ -339,7 +339,7 @@ public class XSSFExportToXml implements Comparator<String>{
|
|||||||
NamedNodeMap attributesMap = currentNode.getAttributes();
|
NamedNodeMap attributesMap = currentNode.getAttributes();
|
||||||
Node attribute = attributesMap.getNamedItem(attributeName);
|
Node attribute = attributesMap.getNamedItem(attributeName);
|
||||||
if (attribute==null) {
|
if (attribute==null) {
|
||||||
attribute = doc.createAttribute(attributeName);
|
attribute = doc.createAttributeNS("", attributeName);
|
||||||
attributesMap.setNamedItem(attribute);
|
attributesMap.setNamedItem(attribute);
|
||||||
}
|
}
|
||||||
return attribute;
|
return attribute;
|
||||||
@ -350,7 +350,7 @@ public class XSSFExportToXml implements Comparator<String>{
|
|||||||
if (isNamespaceDeclared()) {
|
if (isNamespaceDeclared()) {
|
||||||
selectedNode =doc.createElementNS(getNamespace(),axisName);
|
selectedNode =doc.createElementNS(getNamespace(),axisName);
|
||||||
} else {
|
} else {
|
||||||
selectedNode =doc.createElement(axisName);
|
selectedNode = doc.createElementNS("", axisName);
|
||||||
}
|
}
|
||||||
currentNode.appendChild(selectedNode);
|
currentNode.appendChild(selectedNode);
|
||||||
return selectedNode;
|
return selectedNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user