Mercurial > dive4elements > river
changeset 2779:e57816cf41d5
Replaced another silly "@attribute" XPATH with direct getAttribute() call.
flys-artifacts/trunk@4518 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 25 May 2012 13:33:59 +0000 |
parents | 26f2e7e500dd |
children | 772d0c8100d3 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeParser.java |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri May 25 13:31:40 2012 +0000 +++ b/flys-artifacts/ChangeLog Fri May 25 13:33:59 2012 +0000 @@ -1,3 +1,9 @@ +2012-05-25 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/collections/AttributeParser.java: + Replaced another silly "@attribute" XPATH with direct getAttribute() + call. + 2012-05-25 Felix Wolfsteller <felix.wolfsteller@intevation.de> Also draw lines to curve from q-mainvalues in dur. curve
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeParser.java Fri May 25 13:31:40 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeParser.java Fri May 25 13:33:59 2012 +0000 @@ -100,10 +100,9 @@ protected void parseOutput(Node out) { - String name = XMLUtils.xpathString( - out, "@name", ArtifactNamespaceContext.INSTANCE); + String name = ((Element)out).getAttribute("name"); - if (name == null || name.length() == 0) { + if (name.length() == 0) { logger.warn("No Output name specified. Cancel parsing!"); return; }