1. A computer program product for creating an XML document that conforms to an XML schema, the computer program product comprising a computer readable medium tangibly encoded with instructions comprising instructions for: defining at least one shredding tree that each translate a hierarchical data structure into a relational data structure, each of the at least one shredding tree defining a hierarchical data structure comprising at least one cursor node and at least one data node, wherein each of the at least one cursor node defines, in conjunction with parent cursor nodes, a column within the relational data structure, and each of the at least one data node being an immediate child of a respective parent cursor node within the at least one cursor nodes, each of the at least one data node comprising a respective data element to be inserted at the column defined by the respective parent cursor node; reading at least one data element from a subset of the at least one data node of a first part of a hierarchical data structure instance using a tree traversal algorithm defined by the at least one shredding tree; storing the at least one data element in a first storage according to the relational data structure defined by a current shredding tree comprising the at least one data node containing the at least one data element; maintaining a set of tree commit counter, each tree commit counter being associated with a respective shredding tree within the at least one shredding tree; maintaining a global commit counter; decrementing, in response to the storing, a current tree commit counter within the set of tree commit counters, the current tree commit counter being associated with the current shredding tree; decrementing, in response to the storing, the global commit counter, determining, in response to the storing, that the first storage stores a quantity of data that is greater than a threshold; and outputting, in response to the determining, data stored in the first storage to a relational data structure according to the mapping.
1. A computer program product for creating an XML document that conforms to an XML schema, the computer program product comprising a computer readable medium tangibly encoded with instructions comprising instructions for: defining at least one shredding tree that each translate a hierarchical data structure into a relational data structure, each of the at least one shredding tree defining a hierarchical data structure comprising at least one cursor node and at least one data node, wherein each of the at least one cursor node defines, in conjunction with parent cursor nodes, a column within the relational data structure, and each of the at least one data node being an immediate child of a respective parent cursor node within the at least one cursor nodes, each of the at least one data node comprising a respective data element to be inserted at the column defined by the respective parent cursor node; reading at least one data element from a subset of the at least one data node of a first part of a hierarchical data structure instance using a tree traversal algorithm defined by the at least one shredding tree; storing the at least one data element in a first storage according to the relational data structure defined by a current shredding tree comprising the at least one data node containing the at least one data element; maintaining a set of tree commit counter, each tree commit counter being associated with a respective shredding tree within the at least one shredding tree; maintaining a global commit counter; decrementing, in response to the storing, a current tree commit counter within the set of tree commit counters, the current tree commit counter being associated with the current shredding tree; decrementing, in response to the storing, the global commit counter, determining, in response to the storing, that the first storage stores a quantity of data that is greater than a threshold; and outputting, in response to the determining, data stored in the first storage to a relational data structure according to the mapping. 4. The computer program product of claim 1 , wherein the shredding tree is defined by one of an annotated XML schema an annotated document type definition document, the one of the annotated XML schema and annotated document type definition document defining a hierarchical data structure definition with annotations, wherein the annotations comprise a first set of annotations for at least one leaf node of the hierarchical data structure definition that define a respective binding between a data element of the respective at least one leaf node and a column of the hierarchical data structure.