9. A system for representing and generating XML data, the system comprising: at least one processor; and a computer-readable medium having stored thereon a plurality of instructions for causing the at least one processor to perform steps of: receiving a sparse representation document failing to satisfy a predefined schema, the sparse representation document comprising a plurality of sparsely-encoded XML elements comprising valid XML code portions that are limited to defining attribute values without corresponding tags; parsing the sparse representation document according to a predefined set of XML parsing rules, wherein the parsing generates a XML document having a valid XML structure according to the predefined schema; responsive to encountering a first sparsely-encoded XML element among the plurality of sparsely-encoded XML elements during the parsing, applying a mapping function to the first sparsely-encoded XML element, wherein the mapping function is configured to map the first sparsely-encoded XML element to a first nested location in the XML document; and responsive to encountering a second sparsely-encoded XML element among the plurality of sparsely-encoded XML elements during the parsing, applying the mapping function to the second sparsely-encoded XML element, wherein the mapping function is configured to utilize a heuristic to map the second sparsely-encoded XML element to a second nested location in the XML document, and wherein the heuristic handles at least one mapping by selecting a most recently encountered element.
9. A system for representing and generating XML data, the system comprising: at least one processor; and a computer-readable medium having stored thereon a plurality of instructions for causing the at least one processor to perform steps of: receiving a sparse representation document failing to satisfy a predefined schema, the sparse representation document comprising a plurality of sparsely-encoded XML elements comprising valid XML code portions that are limited to defining attribute values without corresponding tags; parsing the sparse representation document according to a predefined set of XML parsing rules, wherein the parsing generates a XML document having a valid XML structure according to the predefined schema; responsive to encountering a first sparsely-encoded XML element among the plurality of sparsely-encoded XML elements during the parsing, applying a mapping function to the first sparsely-encoded XML element, wherein the mapping function is configured to map the first sparsely-encoded XML element to a first nested location in the XML document; and responsive to encountering a second sparsely-encoded XML element among the plurality of sparsely-encoded XML elements during the parsing, applying the mapping function to the second sparsely-encoded XML element, wherein the mapping function is configured to utilize a heuristic to map the second sparsely-encoded XML element to a second nested location in the XML document, and wherein the heuristic handles at least one mapping by selecting a most recently encountered element. 11. The system of claim 9 , wherein the first nested location is determined by user-specified rule.