1. A method of transferring contents from a database to a mark-up language file, the database including content instances associated with database fields having a respective database field type, the method including using a processing system having a processor coupled to a memory: receiving from the memory instructions to create the mark-up language file, wherein the instructions include an indication of the contents to be included in the mark-up language file; In response to receiving the indication, receiving at least one report from the database wherein the report specifies query templates to be used to extract the contents from the database; creating an intermediate data store in the memory, the data store including store fields having required store field types and a number of store fields of each type in accordance with the number of content instances; generating queries from the query templates; transferring the content instances to the store by using the queries to query the database to cause the content instances to be transferred to the data store, wherein a manipulation of the content instances from respective database fields is performed to form a single instance for storage in a single data store field of the data store, and the transferring comprises creating the queries including one or more vacant locations; applying the queries to the database to thereby transfer each content instance into a respective vacant location; and, transferring each content instance to the store; creating the mark-up language file to store content instances from the data store; determining a mapping between database fields and the mark-up language file fields in accordance with the content extracted from the database, wherein the mapping specifying to which node type the content of each database field should be mapped to in the mark-up language file according a respective document type definition, wherein each node type is determined based on the each content instance extracted from the database; and, transferring content instances from the data store to the mark-up language file in accordance with the mapping by extracting content instances from the data store, and storing the content instances in the mark-up language file fields according to the node types.