This Project Has Moved

This project is no longer being hosted on the Sourceforge servers. The project is now hosted on my own personal account. Any future developments with this project can be found at http://ashpool.robrohan.com. This site and the code in the Sourceforge repository is for archival purposes only.

What is Ashpool?

Ashpool is a lightweight XML Database written in Java™. It's goal is to use standard SQL92 syntax to query, add, update, and delete XML documents via a JDBC driver. The XML documents must hold to a table like structure. The reason for the table structure restriction is that SQL was designed to query table data not hierarchical data.

The Ashpool engine via JDBC drivers can be used to query any XML document; however, it is best used with documents that have a table like structure for the first three levels. The "column" section of the table structure can contain integer, float, string, dateTime or XML fragments. Ashpool can be used to search for XML documents inside of an XML document (for example, as a serialized bean store), or used as a lightweight relational database.

All the while Ashpool's "tables" are XML, so transmitting them over HTTP, running them through FOP, or editing them with a text editor are all possible - it other words you do not loose the power of XML.

Along with SQL, Ashpool also can use the Bean Scripting Framework to create stored procedures and scripts.

Not everything is roses though. Because Ashpool is querying XML, Ashpool can get slow when large amounts of information are involved. Ashpool uses SAX (unlike some other products) so it can handle somewhat larger documents then others, but do not expect Enterprise Database performance. Performance issues do not show their head unless you are using encrypted documents or the documents contain a "large" amount of data.

Ashpool defines a "table like structure" to mean an XML document like the following:

<any_root_node>
	<any_row_node>
		<column_node_a>data</column_node_a>
		<column_node_b/>
		[...]
	</any_row_node>
	[...]
</any_root_node>
			

where all <any_row_node> elements have the same named and number of child elements. If the 'column' being queried contains child nodes instead of simple data (int, string, dateTime, etc) the returned column contains the document fragment.

Why SQL?

If you are looking to get the most bang for your query buck, you might want to look into XSLT or perhaps an XML database that doesn't use SQL. Ashpool is trying to enforce the SQL restrictions.

Ashpool can be used to do several things. First, it can be used as a database in small devices (like Access on a PDA or something). Second it can be used as a 'cached query' type of process - where one could query a large database to create the XML document, then query the XML document. And third, it will allow for XML usage with processes already designed to use SQL (meaning business logic will not have to change to use simple XML documents).

Copyright © 2003-2006 Rob Rohan • Website designed by Bartosz Brzezinski