Skip to end of metadata
Go to start of metadata

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. 

IncorrectCorrect
<categories>
	<code>01</code>
    <name>SciFi</name>
	<books>
    </books>
</categories>
<categories code=01 name='SciFi'>
	<books>
    </books>
</categories>

Queries


SlogancpsPathJiraNotes
1get (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
2get 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


SloganJiraNotes
1Replace DataNode(tree)

CPS-58 - Getting issue details... STATUS



2Update Single attribute on single DataNode


3Update Multiple attributes on single DataNode


4Add Child DataNode 


5Add DataNode to List


6Remove DataNode


7Add element to Leaf-List


8Remove Element from Leaf-List





  • No labels