Patent ID: 7096224

Claim:
A method for managing data in a database server, the method comprising the steps of: determining, within the database server, an appropriate database representation for storing within said database server documents that conform to an XML schema; generating mapping data that indicates correlations between elements of said XML schema and elements of said appropriate database representation; wherein the step of determining an appropriate database representation includes mapping datatypes associated with elements in said XML schema to datatypes supported by said database server; creating structures within a database based on said appropriate database representation; storing in said structures data from XML documents that conform to said XML schema; and wherein the step of storing in said structures data from XML documents includes the steps of: receiving an XML document at said database server, identifying certain data, from said XML document, that is associated with individual elements of said XML schema, and storing the certain data that is associated with individual elements at locations within said structures based on the individual elements associated with the certain data, and the mapping data.