0 Replies Latest reply: Mar 30, 2014 8:21 AM by c7b4ea41-69c7-4758-8217-a2ca4df90012 RSS

    2 questions concerning BDB XML query

    c7b4ea41-69c7-4758-8217-a2ca4df90012

      Suppose that in BDB XML there are documents with multiple items of the same structure, for example:

       

      Document 1:

      <store>

           <book>

                <name>The Jungle Book</name>

                <year>1920</year>

           </book>

           <book>

                <name>The Black Book</name>

                <year>2006</year>

           </book>

      </store>


      Document 2:

      <store>

           <book>

                <name>Jungle Girl</name>

                <year>2008</year>

           </book>

           <book>

                <name>Romeo And Juliet</name>

                <year>1584</year>

           </book>

      </store>


      1. I would like to retrieve documents that match requirement on the same book.

         For example, retrieve all documents that contain a book, with the word Jungle in its name, and that were published after 2000.

         The result should be Document 2.


      2. Can a query retrieve all documents with books that with a name similar to a particular name? for example, name similar to Julia should retrieve Document 2.


      Thanks,

      Ury.