摘要 |
PURPOSE: A device for storing and recovering a document using RDB(Relational DataBase) and a method thereof are provided to store, search, and recover a document such as an XML(eXtensible Markup Language) by defining a correspondence relation of a document such as an XML and an RDB in a conversion rule catalogue, and creating a table adapted to an XML document structure using a layer level, a data pattern, a table and attribute name, and a document position path defined in a catalogue. CONSTITUTION: An RDB(12) defines a correlation between an element or an attribute and a table attribute of each XML document(11) as a catalogue form, automatically creates a table corresponded to an XML document structure based on the defined catalogue, and stores contents corresponded to a tag of the XML document(11). An XML table generator(131) endows a table attribute, a primary key, an index key, and a table relation based on information read from a conversion rule catalogue(135), and creates a table. An XML document storage device(132) extracts information of a table structure and information with respect to a document position path of an XML document(11), and stores an XML document(11). An XML document search unit(133) extracts additional information from the conversion rule catalogue(135), receives a search condition from a user, and searches an attribute of data corresponded to the condition through a table. An XML document recovery unit(134) extracts data from a table and creates data corresponded to a tag in accordance with an XML document structure.
|