diff flys-client/src/main/java/de/intevation/flys/client/server/features/XMLFileFeatures.java @ 3487:3dfe7bbab70f

Don't use xml namespace to get the "name" attribute of a role The RES services of flys don't use namespaces for attributes therefore don't use it for features too. flys-client/trunk@5185 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 10 Aug 2012 08:40:36 +0000
parents 83845aa322ea
children 5f628a13ca9f
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/features/XMLFileFeatures.java	Fri Aug 10 08:17:52 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/features/XMLFileFeatures.java	Fri Aug 10 08:40:36 2012 +0000
@@ -46,8 +46,7 @@
             for(int i = 0, m = roles.getLength(); i < m; i++) {
                 Element rolenode = (Element)roles.item(i);
 
-                String name = rolenode.getAttributeNS(
-                    FeaturesNamespaceContext.NAMESPACE_URI, "name");
+                String name = rolenode.getAttribute("name");
 
                 logger.debug("Found role: " + name);
 

http://dive4elements.wald.intevation.org