Versions Compared

Key

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

...

Example : java XQueryExample /db/apps/HeD/modules/data/ doc(\"books.xml\")/bookstore/book[price>30.00]

Example 4 : CreateUpdateExample

This example reads the input data instance file and write into the provided collection into Exist DB. If the provided collection does not exist it will create one. It takes 2 run time arguments as shown below : 

args[0] Should be the name of the collection to access

args[1] Should be the name of the file to read and store in the collection

Example : java CreateUpdateExample /db/apps/HeD/modules/data/ D://StoreData.xml