comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/meta/Builder.java @ 410:df02137b3b28

Datacage service: Cleanup served XML document. flys-artifacts/trunk@1870 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 09 May 2011 19:54:24 +0000
parents fc3cf0ef777e
children 7c018f466d6d
comparison
equal deleted inserted replaced
409:c7a55ff1e22a 410:df02137b3b28
207 } 207 }
208 } 208 }
209 return; 209 return;
210 } 210 }
211 211
212 if (current.getNodeType() == Node.TEXT_NODE) {
213 String txt = current.getNodeValue();
214 if (txt != null && txt.trim().length() == 0) {
215 return;
216 }
217 }
218
212 Node copy = output.importNode(current, false); 219 Node copy = output.importNode(current, false);
213 220
214 NodeList children = current.getChildNodes(); 221 NodeList children = current.getChildNodes();
215 for (int i = 0, N = children.getLength(); i < N; ++i) { 222 for (int i = 0, N = children.getLength(); i < N; ++i) {
216 build(copy, children.item(i)); 223 build(copy, children.item(i));

http://dive4elements.wald.intevation.org