Patent Document ID: 9928289
Application ID: 14385184

Base Claim:
1. A method for storing Extensible Markup Language (XML) data into a relational database, comprising: splitting an XML Schema into one or more mapping configuration files, each of which corresponds to a relational database table, the one or more mapping configuration files each including of one root node and a plurality of child nodes, wherein XML attributes of the root node include Name, Initial Depth, and Depth Number, and XML attributes of the child nodes include identification (ID), Parent identification (Parent ID), Name, Depth Number, Maximum Value, and Type; parsing XML text from the one or more mapping configuration files, and inserting data from the XML text into multiple relational database tables according to associative relationships in the one or more mapping configuration files, wherein parsing XML text from the one or more mapping configuration files includes: judging whether to enter into a node of the XML text, according to an index file, by judging that a current parsing depth of the XML text is within a depth range attribute specified in the index file, and judging that a tag with a Depth Number attribute and a Name attribute exists in the mapping configuration file that matches the index file, and otherwise stopping the parsing, the parsing XML; judging whether the node is a leaf node that does not contain a child node, according to the index file, and judging whether a record has been completed, according to the index file; logging, in the index file, a tag entry flag, and saving all attributes of the tag, and logging a tag with a Depth Number attribute and a Name attribute found in the XML text; and reading the data from the XML text by accessing the multiple relational database tables; wherein the Name attribute of the root node of each of the one or more mapping configuration files is a non-null string, and specifies a name of a database table; the Initial Depth attribute of the root node of each of the one or more mapping configuration files is a positive integer, and the one or more mapping configuration files are used when a parsing depth of the XML text is equal to the positive integer of the Initial Depth attribute of the root node; the Depth Number attribute of the root node of each of the one or more mapping configuration files is a positive integer, and the one or more mapping configuration files are not used any more when the XML text is parsed from the Initial Depth attribute to the positive integer of the Depth Number attribute of the root node; the ID attribute of the child nodes are positive integers, and represent node identifications for the child nodes; the Parent ID attribute of the child nodes are integers, and represent identifications for parent nodes for one or more of the child nodes wherein the integer of the Parent ID is zero for each child node of the plurality of child nodes that has no parent node; the Name attribute of the child nodes are non-null strings, and represent names of one or more tags; the Depth Number attribute of the child nodes are positive integers; the Maximum Value attribute of the child nodes are positive integers; and the Type attribute of the child nodes are strings, and indicate whether the child nodes are primary key, indicate a basic data type for the child nodes, and indicate whether the child nodes are a leaf node, wherein indexes are created in different mapping configuration files according to a node of Primary Key type.

---

Claim 2:
2. The method for storing XML data into a relational database according to claim 1 , wherein, identical nodes can appear in different mapping configuration files.