# HG changeset patch # User Felix Wolfsteller # Date 1316767337 0 # Node ID 2c968defd878facc0ae6f513c290cf2abb7a7643 # Parent e7d3f74854fb533f0095994ac4687f5598452808 Fix debug helper toString(Node). artifacts/trunk@2816 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r e7d3f74854fb -r 2c968defd878 ChangeLog --- a/ChangeLog Fri Sep 23 08:29:48 2011 +0000 +++ b/ChangeLog Fri Sep 23 08:42:17 2011 +0000 @@ -1,3 +1,10 @@ +2011-09-23 Felix Wolfsteller + + Fix debug helper toString(Node). + + * artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java: + (toString(Node)): Fix issue with node from "wrong" document. + 2011-09-23 Felix Wolfsteller Added XMLUtils functions helping to debug parts of xml documents. diff -r e7d3f74854fb -r 2c968defd878 artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java --- a/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java Fri Sep 23 08:29:48 2011 +0000 +++ b/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java Fri Sep 23 08:42:17 2011 +0000 @@ -199,7 +199,7 @@ */ public final static String toString(Node node) { Document doc = newDocument(); - doc.appendChild(node); + doc.importNode(node, true); return toString(doc); }