summaryrefslogtreecommitdiff
path: root/bkucommon/src/main/java
diff options
context:
space:
mode:
authormcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-12-09 15:57:42 +0000
committermcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-12-09 15:57:42 +0000
commit6f34b1722aa7e6c4a726a7376499a17fd2691f47 (patch)
treed520b7ae2574e2e0bceaf7e7630226ee7ea895fa /bkucommon/src/main/java
parentdbfd110e2e502b561241e7578a7028dce48f961c (diff)
downloadmocca-6f34b1722aa7e6c4a726a7376499a17fd2691f47.tar.gz
mocca-6f34b1722aa7e6c4a726a7376499a17fd2691f47.tar.bz2
mocca-6f34b1722aa7e6c4a726a7376499a17fd2691f47.zip
Updated InfoboxReadResultFileImpl to cope with nodes from different documents.
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@244 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadResultFileImpl.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadResultFileImpl.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadResultFileImpl.java
index c26bcd0b..d8295227 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadResultFileImpl.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadResultFileImpl.java
@@ -135,9 +135,8 @@ public class InfoboxReadResultFileImpl extends SLResultImpl implements
xmlDocument = createResponseDocument(null, preserveSpace);
NodeList nodeList = xmlDocument.getElementsByTagNameNS(SLCommand.NAMESPACE_URI, "XMLContent");
- if (node.getOwnerDocument() != xmlDocument.getOwnerDocument()) {
- Document doc = xmlDocument.getOwnerDocument();
- node = doc.importNode(node, true);
+ if (node.getOwnerDocument() != xmlDocument) {
+ node = xmlDocument.importNode(node, true);
}
nodeList.item(0).appendChild(node);