Mercurial > dive4elements > framework
comparison artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java @ 336:2c968defd878
Fix debug helper toString(Node).
artifacts/trunk@2816 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 23 Sep 2011 08:42:17 +0000 |
parents | e7d3f74854fb |
children | ec5c7e54cae1 |
comparison
equal
deleted
inserted
replaced
335:e7d3f74854fb | 336:2c968defd878 |
---|---|
197 * @param element element to inspect in string. | 197 * @param element element to inspect in string. |
198 * @return string with xml representation of element. | 198 * @return string with xml representation of element. |
199 */ | 199 */ |
200 public final static String toString(Node node) { | 200 public final static String toString(Node node) { |
201 Document doc = newDocument(); | 201 Document doc = newDocument(); |
202 doc.appendChild(node); | 202 doc.importNode(node, true); |
203 return toString(doc); | 203 return toString(doc); |
204 } | 204 } |
205 | 205 |
206 | 206 |
207 /** | 207 /** |