发明名称 Method of converting data of database and creating XML document
摘要 Disclosed herein is a method of converting data of a database and creating an XML document. In the method, a source XML document has user-defined tags is designed. The source XML document is separated into an XML document for normal data conversion which is used when converting normal data, and an XML document for repetitive data conversion which is used when converting repetitive data. An SQL query statement for data to be converted in a DB is generated. The SQL query statement is executed on the DB and thereafter resulting data obtained as a result of executing the SQL query statement is stored in a storage sheet. The structural data of the source XML document is mapped to the resulting data stored in the storage sheet. A new XML document is created by replacing the structural data of the source XML document with the resulting data.
申请公布号 US9208255(B2) 申请公布日期 2015.12.08
申请号 US201213353956 申请日期 2012.01.19
申请人 发明人 Kim Youngkun
分类号 G06F17/00;G06F17/30 主分类号 G06F17/00
代理机构 Klarquist Sparkman, LLP 代理人 Klarquist Sparkman, LLP
主权项 1. A method of converting data of a database (DB) and creating an eXtensible Markup Language (XML) document, comprising: designing a source XML document provided with user-defined tags; separating the source XML document into an XML document for normal data conversion which is used when converting normal data, among structural data of the source XML document, and an XML document for repetitive data conversion which is used when converting repetitive data; generating a Structured Query Language (SQL) query statement for data to be converted in a DB; executing the SQL query statement on the DB and thereafter storing resulting data obtained as a result of executing the SQL query statement in a storage sheet; mapping the structural data of the source XML document to the resulting data stored in the storage sheet; and creating a new XML document by replacing the structural data of the source XML document with the resulting data stored in the storage sheet; wherein at the generating the SQL query statement, the SQL query statement comprises: a main query statement for loading primary keys of large-capacity data included in the DB;a main sub-query statement for connecting a plurality of pieces of table information using the primary keys and then loading the normal data; anda sub-query statement for connecting a plurality of pieces of table information using the primary keys and then loading the repetitive data; wherein at the storing the resulting data, the storage sheet comprises: a normal data storage sheet for storing the normal data; anda repetitive data storage sheet for storing the repetitive data; wherein at the storing the resulting data, a method of storing the normal data of the resulting data comprises: executing the main query statement and storing values of the primary keys and a number of results of execution of the main query statement in the normal data storage sheet; andexecuting the main sub-query statement a number of times identical to the number of results of the execution of the main query statement and storing resulting data obtained from the execution in the normal data storage sheet; and wherein at the storing the resulting data, a method of storing the repetitive data of the resulting data comprises: executing the main query statement and storing values of the primary keys in the repetitive data storage sheet; andexecuting the sub-query statement and storing resulting data obtained from the execution in the repetitive data storage sheet.
地址 Gyeongsangbuk-do KR