主权项 |
1. A method of transferring content from a mark-up language file to a database, the database including database fields having a respective database field type, and the mark-up language file including file fields having a respective file field type and storing content instance, each content instance being stored as a respective node in a corresponding file field, the method including, in a processing system having a processor coupled to a memory:
a) receiving the mark-up language file; b) determining file fields of the mark-up language file; c) determining a document definition defining the attributes and elements used within the mark-up language file by comparing file fields of the file to a list of elements and attributes within each of a number of different document definitions, the document definitions being stored in a store remote from the processing system; d) selecting one of a number of predefined mappings stored in the store, wherein the mapping is a node map selected using the determined document definition, the node map including a node rule for each node in the file; e) creating a data store including store fields specified in the mapping, the data store being created in the memory of the processing system; and, f) transferring at least one content instance corresponding to a node of the file to a respective database field by transferring the at least one content instance from the file field of the file to a store field of the data store and from the store field of the data store to a database field of the database, in accordance with the respective node rule in the mapping. |