Mercurial > dive4elements > framework
comparison artifacts-common/src/main/java/de/intevation/artifacts/common/utils/ClientProtocolUtils.java @ 212:d7042094f7b7
Bugfix: Repaired a broken XPath.
artifacts/trunk@1548 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 23 Mar 2011 12:08:21 +0000 |
parents | 435631e07da2 |
children | fc435da7f471 |
comparison
equal
deleted
inserted
replaced
211:435631e07da2 | 212:d7042094f7b7 |
---|---|
208 ArtifactNamespaceContext.NAMESPACE_URI, | 208 ArtifactNamespaceContext.NAMESPACE_URI, |
209 ArtifactNamespaceContext.NAMESPACE_PREFIX); | 209 ArtifactNamespaceContext.NAMESPACE_PREFIX); |
210 | 210 |
211 Element action = cr.create("action"); | 211 Element action = cr.create("action"); |
212 Element type = cr.create("type"); | 212 Element type = cr.create("type"); |
213 Element collection = cr.create("artifact-collection"); | 213 Element collection = cr.create("collection"); |
214 | 214 |
215 cr.addAttr(type, "name", "create"); | 215 cr.addAttr(type, "name", "create"); |
216 cr.addAttr(collection, "name", name != null ? name : ""); | 216 cr.addAttr(collection, "name", name != null ? name : ""); |
217 | 217 |
218 action.appendChild(type); | 218 action.appendChild(type); |
219 action.appendChild(collection); | 219 type.appendChild(collection); |
220 | 220 |
221 doc.appendChild(action); | 221 doc.appendChild(action); |
222 | 222 |
223 return doc; | 223 return doc; |
224 } | 224 } |