Apache Ant/Store XML data

Motivation
You want to upload a file or a hierarchy of files into eXist.

Method
We will use the xdb:store function and demonstrate how to use its options to load subfolders.

Sample Code
Each build file must have four key components
 * 1) a reference to internal files on your hard drive (ideally in a properties file)
 * 2) a typedef for your Ant eXist extensions
 * 3) a path to tell it where to get the jar files
 * 4) a target to do the load

Using a local.properties File to Load XML Data
The script above will work fine if you have a single use with one set of local files. But if you have many user each user may put their local files in a different location. If that is the case then you will want to isolate all local file references in a file called local.properties.

The following example is from the eXist documentation project for a server running on port 8080 with the context being set to be "/":