XML

Scripting the addition of XML files to the eXist XQuery database

This wasn't documented very well, so once I got it to work I thought I'd post it.

Saxon is great for getting to know XQuery syntax (see part one and part two of my “Getting Started with XQuery” articles in XML.com for more on this), but it reads all of the data to query into memory, and much of the point of XQuery is to work with large, indexed, disk-based collections of XML that won’t fit into memory. I’ve started playing with the open-source eXist XML database for this.