1. A non-transitory computer-readable medium having stored therein a set of instructions, which when executed by a computer, cause the computer to perform a method of initializing an extensible markup language (XML) database, the method comprising: dynamically generating an empty structure for the XML database and code to access and handle objects in the XML database, the dynamically generated XML database structure and code corresponding to an XML file, the dynamically generating comprising: parsing the XML file to extract a plurality of records therefrom, the records arranged in a hierarchical form; creating, for each record extracted from the XML file, a corresponding class that defines a part of the empty structure for the XML database, each class having associated therewith one or more attributes of the each record; and creating a plurality of handling methods for each of one or more attributes associated with each object within a class, the handling methods defining how data associated with the attributes can be accessed in the database.