1. A method for defining a data store in a computer, comprising: accessing an eXtensible Markup Language (XML) document; accessing an eXtensible Markup Language (XML) schema associated with the XML document; locating an object defined in the XML schema as a key; defining a first data structure in the data store for the object in a native format of the data store; identifying the first data structure in the data store as a key data structure; defining a second data structure in the data store for a generic document conforming to the XML schema, wherein the generic document is an XML document, including: parsing the XML schema into objects; and defining a data structure in the data store for each object; copying a value from an XML document using the XML schema into the first data structure, the value corresponding to the object defined in the XML schema as the key; and storing the XML document in the second data structure.