changeset 4353:daf0919df76d

Ignore comments in meta data xml template Comments should not be send to the client. Therefore ignore them when building the nodes.
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 01 Nov 2012 15:16:01 +0100
parents 823c8afa1335
children e0add97c432b
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java	Thu Nov 01 14:49:43 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java	Thu Nov 01 15:16:01 2012 +0100
@@ -515,6 +515,11 @@
                 }
             }
 
+            if (current.getNodeType() == Node.COMMENT_NODE) {
+                // Ignore XML comments
+                return;
+            }
+
             Node copy = owner.importNode(current, false);
 
             NodeList children = current.getChildNodes();

http://dive4elements.wald.intevation.org