1. A method for decomposing an XML document for storage in a database, the method comprising: receiving a mapping document, the mapping document describing how portions of the XML document are to be decomposed; transforming the mapping document into a data structure for decomposing the XML document; and making the data structure persistent for use with a subsequent decomposition operation that decomposes the XML document.