summaryrefslogtreecommitdiff
path: root/bkucommon/src/main
diff options
context:
space:
mode:
authormcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-12-09 15:50:02 +0000
committermcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-12-09 15:50:02 +0000
commitdbfd110e2e502b561241e7578a7028dce48f961c (patch)
treec372a5b44c428b6e8f5cdc26f439c0fec9e97599 /bkucommon/src/main
parent1e2e6966def8aae45ff1b368c3582b6363c4294d (diff)
downloadmocca-dbfd110e2e502b561241e7578a7028dce48f961c.tar.gz
mocca-dbfd110e2e502b561241e7578a7028dce48f961c.tar.bz2
mocca-dbfd110e2e502b561241e7578a7028dce48f961c.zip
Updated InfoboxReadResultFileImpl to cope with nodes from different documents.
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@243 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/InfoboxReadResultFileImpl.java4
1 files changed, 4 insertions, 0 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 e43d99c6..c26bcd0b 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,6 +135,10 @@ 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);
+ }
nodeList.item(0).appendChild(node);
}