Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

IncorrectCorrectBookstore XML extract for testing xPath Queries online


Code Block
languagexml
<categories>
	<code>01</code>
    <name>SciFi</name>
	<books>
    </books>
</categories>



Code Block
languagexml
<categories code=01 name='SciFi'>
	<books>
    </books>
</categories>



Code Block
languagexml
titleBookstore
    <bookstore name="Chapters"> 
        <bookstore-name>Chapters</bookstore-name> 
        <categories code="01" name="SciFi"> 
            <books>
                 <book name="Feersum Endjinn"/>
                 <book name="Chapters"/>
           </books>
        </categories>
        <categories code="02" name="kids" /> 
        <categories code="03" name="Chapters" /> 
    </bookstore>



Open Issues & Decision

#SloganNotesAnswer
1
is
Is there and xPath expression to 'include or exclude all descendants'Alternatively client can pass an enum option

Need to use output option additional to the cpsPath (xpath) expression!

Although xpath has many options to include or exclude children from filters (conditions) it does NOT control what is being returned.
The descendants are part of the data and a (xpath) query is not able to modify the data!

Queries

Scope of queries

  1. The assumes scope for all below Queries is one Dataspace and oen Anchor. 
  2. It will be relatively easy to extend the scope to multiple anchors in a later user story.
  3. There is no need to extend the scope beyond one Dataspace

...