1. A computer-implemented method for representing and generating XML data, the method comprising: determining an XML structure based upon a sparse representation of an XML document; and generating a complete, valid XML document based upon the determined XML structure.