Mercurial > dive4elements > river
changeset 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 | 23095983c249 |
children | abaf0e55c9d2 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/features/XMLFileFeatures.java |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Fri Aug 10 08:17:52 2012 +0000 +++ b/flys-client/ChangeLog Fri Aug 10 08:40:36 2012 +0000 @@ -1,3 +1,7 @@ +2012-08-08 Björn Ricks <bjoern.ricks@intevation.de> + * src/main/java/de/intevation/flys/client/server/features/XMLFileFeatures.java: + Don't use a xml namespace to get the "name" attribute of a role. + 2012-08-08 Björn Ricks <bjoern.ricks@intevation.de> * src/main/java/de/intevation/flys/client/server/auth/was/Authenticator.java, src/main/java/de/intevation/flys/client/server/auth/was/Response.java,
--- 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);