diff flys-aft/src/main/java/de/intevation/utils/XML.java @ 4072:88f801888d85

load configuration an setup db connections. flys-aft/trunk@3401 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 13 Dec 2011 12:33:36 +0000
parents d09adfa90942
children 44dc38ca8492
line wrap: on
line diff
--- a/flys-aft/src/main/java/de/intevation/utils/XML.java	Tue Dec 13 10:11:23 2011 +0000
+++ b/flys-aft/src/main/java/de/intevation/utils/XML.java	Tue Dec 13 12:33:36 2011 +0000
@@ -69,10 +69,14 @@
      * during loading.
      */
     public static final Document parseDocument(File file) {
+        return parseDocument(file, Boolean.TRUE);
+    }
+
+    public static final Document parseDocument(File file, Boolean namespaceAware) {
         InputStream inputStream = null;
         try {
             inputStream = new BufferedInputStream(new FileInputStream(file));
-            return parseDocument(inputStream);
+            return parseDocument(inputStream, namespaceAware);
         }
         catch (IOException ioe) {
             log.error(ioe.getLocalizedMessage(), ioe);

http://dive4elements.wald.intevation.org