Mercurial > dive4elements > framework
diff artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java @ 270:89f6de49803d
Modified the method to create the document to trigger the out() operation of a collection in ClientProtocolUtils.
artifacts/trunk@2046 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 03 Jun 2011 06:37:23 +0000 |
parents | 72de5c373c9b |
children | f5a0f90bcc6f |
line wrap: on
line diff
--- a/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java Tue May 31 14:53:36 2011 +0000 +++ b/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java Fri Jun 03 06:37:23 2011 +0000 @@ -384,8 +384,7 @@ ArtifactNamespaceContext.NAMESPACE_URI, ArtifactNamespaceContext.NAMESPACE_PREFIX); - Element action = cr.create("action"); - Element attributes = cr.create("attributes"); + Element action = cr.create("action"); cr.addAttr(action, "name", mode, true); cr.addAttr(action, "type", type, true); @@ -396,8 +395,7 @@ Node root = attr.getFirstChild(); if (root != null) { - action.appendChild(attributes); - attributes.appendChild(doc.importNode(root, true)); + action.appendChild(doc.importNode(root, true)); } }