You are viewing an old version of this content. View the current version.
Compare with Current
View Version History
Version 1
Next »
Resources
*Note when using online xpath testers, ensure that laves are expressed as xml attributes and not like other xml elements like json-to-xml convertors will do.
Incorrect | Correct |
---|
<categories>
<code>01</code>
<name>SciFi</name>
<books>
</books>
</categories>
|
<categories code=01 name='SciFi'>
<books>
</books>
</categories>
|
Queries
| Slogan | cpsPath | Jira | Notes |
---|
1 | get (list element) by xpath | /bookstore/categories[@code='01'] |
CPS-71
-
Getting issue details...
STATUS
| This is not really a query as code is the key attributes and this xpath is stored with the target fragment |
2 | get list element by other attribute | /bookstore/categories[@name='SciFi'] |
CPS-231
-
Getting issue details...
STATUS
| Compare to #1, notice how from a cpsPath perspective it is not clear which is a get and which is a query. The customer might not know either! See issue #1 |
3 |
| //categories [@name='SciFi'] |
|
|
4 |
| //*[@name='SciFi'] |
|
|
Updates
| Slogan | Jira | Notes |
|
---|
1 | Replace DataNode(tree) |
CPS-58
-
Getting issue details...
STATUS
|
|
|
2 | Update Single attribute on single DataNode |
|
|
|
3 | Update Multiple attributes on single DataNode |
|
|
|
4 | Add Child DataNode |
|
|
|
5 | Add DataNode to List |
|
|
|
6 | Remove DataNode |
|
|
|
7 | Add element to Leaf-List |
|
|
|
8 | Remove Element from Leaf-List |
|
|
|