摘要 |
PURPOSE: A method for storing an extensible markup language (XML) schema in a relational database is provided to adopt a structure using the single entity of the relational database, thereby storing, managing, and utilizing various types of XML schemas with one table. CONSTITUTION: A method for storing an XML schema in a relational database comprises the steps of: extracting the item names and types of elements by parsing the XML schema (S100); registering the extracted item name and type of the element in the table of the relational database (S200); and registering a left value and a right value, which correspond to each item name of the element and are range values for definition of subordinate relationship between the elements, in the table of the relational database (S300). The table of the relational database includes the identification (ID) of the XML schema and the ID of the element. [Reference numerals] (S100) Step of extracting the item names and types of a plurality of elements by parsing the Extensible Mark-up Language schema; (S200) Step of registering the extracted item name and type of the element in the table of the relational database; (S300) Step of registering a left value and a right value, which correspond to each item name of the element and are range values for definition of subordinate relationship between the elements, in the table of the relational database |