 
 
 
Chapter 7  Accessing and Storing XML
7.1  Accessing XML Documents with fn:doc()
7.2  Storing and Accessing XML Documents with Jungle
Note: Documentation under construction
To try out Jungle, make sure you have set up your environment as
described in Section 2, then execute following: 
% cd $(GALAXHOME)/examples/jungle
% make tests
Note: Don't forget in galax/examples/jungle director, to edit jungle1.xq and
 replace directory name by the path to your jungle directory, then execute: make tests.
These commands will take a small XMark input document, create a Jungle
store, and run several example queries on the store. 
7.2.1  jungle-load : The Jungle XML document loader
Usage: jungle-load options input-xml-file
- 
-version
-  Prints the Jungle loader version
- -help,–help
-  Display this list of options
- 
-store_dir
-  Directory Path where store is to be created (default is current directory)
- -store_name
-  Logical name of the store (default is Jungle). 
- -buff_size
-  Size of the buffer to be used (default is 256KB).
In $(GALAXHOME)/examples/jungle, execute following command to
build a Jungle store:
jungle-load -store_dir tmp -store_name XMark $(GALAXHOME)/usecases/docs/xmark.xml
After executing this command, the tmp directory will contain:
XMark-AttrIndex.db	  XMark-main.db      
XMark-Namespace.db	  XMark-Qname2QnameID.db	XMark-Text.db
XMark-FirstChildIndex.db  XMark-Metadata.db  
XMark-NextSiblingIndex.db	XMark-QnameID2Qname.db
7.3  Implementing the Galax data model
 
 
