# HG changeset patch # User Sascha L. Teichmann # Date 1337952839 0 # Node ID e57816cf41d5b0311aeeae9797f5d8af4f7049b9 # Parent 26f2e7e500ddcd5072b752b970dd9101d100876a Replaced another silly "@attribute" XPATH with direct getAttribute() call. flys-artifacts/trunk@4518 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 26f2e7e500dd -r e57816cf41d5 flys-artifacts/ChangeLog --- 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 + + * src/main/java/de/intevation/flys/collections/AttributeParser.java: + Replaced another silly "@attribute" XPATH with direct getAttribute() + call. + 2012-05-25 Felix Wolfsteller Also draw lines to curve from q-mainvalues in dur. curve diff -r 26f2e7e500dd -r e57816cf41d5 flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeParser.java --- 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; }