KR20070062644A - Dynamic cm xml exporting method - Google Patents

Dynamic cm xml exporting method Download PDF

Info

Publication number
KR20070062644A
KR20070062644A KR1020050122288A KR20050122288A KR20070062644A KR 20070062644 A KR20070062644 A KR 20070062644A KR 1020050122288 A KR1020050122288 A KR 1020050122288A KR 20050122288 A KR20050122288 A KR 20050122288A KR 20070062644 A KR20070062644 A KR 20070062644A
Authority
KR
South Korea
Prior art keywords
xml
class
function
database
generating
Prior art date
Application number
KR1020050122288A
Other languages
Korean (ko)
Inventor
박정호
Original Assignee
엘지노텔 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지노텔 주식회사 filed Critical 엘지노텔 주식회사
Priority to KR1020050122288A priority Critical patent/KR20070062644A/en
Publication of KR20070062644A publication Critical patent/KR20070062644A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/81Indexing, e.g. XML tags; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A method for exporting dynamic CM XML is provided to dynamically generate the new XML without a task of modifying a corresponding function or adding the new function when a database is updated. A table comprising a list for a function table of each function for generating the XML and a main factor is generated by linking the database of a CMS(Configuration Management Server)(S202). A class for accessing the generated table is generated by an XML generation request. An XML string is made by extracting corresponding information from the database through the generated class(S211). A table generation step includes a class table generation step, an attribute table generation step, and an update step. The update step updates the class/attribute tables by adding changed contents of each function table to the class/attribute table when the database is changed.

Description

동적 구성관리 XML 익스포트 방법{Dynamic CM XML exporting method} Dynamic CM XML exporting method

도 1은 본 발명의 실시예에 따른 동적 구성관리 XML 익스포트 방법을 위한 구성을 개략적으로 나타낸 블록도.1 is a block diagram schematically illustrating a configuration for a dynamic configuration management XML export method according to an embodiment of the present invention.

도 2는 본 발명의 실시예에 따른 동적 구성관리 XML 익스포트 방법을 나타낸 순서도.2 is a flowchart illustrating a dynamic configuration management XML export method according to an embodiment of the present invention.

도 3은 종래의 구성관리 XML 익스포트 방법을 위한 구성의 개략도.3 is a schematic diagram of a configuration for a conventional configuration management XML export method.

도 4a 및 도 4b는 종래의 XML 구조(a)와, XLM 예제(b)를 나타낸 도면. 4A and 4B show a conventional XML structure (a) and an XLM example (b).

* 도면의 주요 부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

10 : 동적 구성관리 XML 익스포터 110 : 클래스(EmsClassTable)10: dynamic configuration management XML exporter 110: class (EmsClassTable)

120 : 클래스(EmsAttrTable) 130 : 클래스 테이블120: class (EmsAttrTable) 130: class table

140 : 속성 테이블 200 : DB140: attribute table 200: DB

300 : 테이블 1~N 300: Table 1 ~ N

본 발명은 동적 구성관리 XML 익스포트 방법에 관한 것으로, 특히, XML을 생성하는 함수별 테이블에 대한 리스트 및 주요 인자를 별도의 테이블로 구성관리하 여 데이터베이스의 변경시 상기 테이블의 갱신에 따라 새로운 XML을 동적으로(dynamically) 생성할 수 있어 해당 함수를 수정하거나 새로운 함수를 추가하기 위한 작업을 수행할 필요가 없는 동적 구성관리 XML 익스포트 방법에 관한 것이다. The present invention relates to a dynamic configuration management XML export method, and in particular, the configuration and management of the list of the function-specific table and the main parameters to a separate table to the new XML according to the update of the table when the database changes It relates to a dynamic configuration management XML export method that can be created dynamically so that you do not have to modify the function or add new functions.

일반적으로, 구성관리(CM; Configuration Management) XML 익스포터(exporter)는 구성관리 서버(CMS; CM Server)의 데이터베이스를 XML 형태로 익스포트하는 기능을 수행한다. In general, a configuration management (CM) XML exporter (CM) exports a database of a configuration management server (CMS; CM Server) in XML format.

여기서, XML은 사업자의 DTD(Document Type Definition) 형식을 따르게 되는데, 이러한 DTD 형식은 크게 스키마(schema)를 표현하는 태그(tag) 부분과 태그 내의 값(value)을 표현하는 부분으로 구분된다. Here, XML follows a provider's document type definition (DTD) format. The DTD format is largely divided into a tag part representing a schema and a part expressing a value within the tag.

초기 파일롯(pilot) 애플리케이션에서는, 도 3에 도시된 바와 같이, 각 테이블별로 함수를 구현하여 해당 XML을 생성하는 구조로 구현되었다. In the initial pilot (pilot) application, as shown in Figure 3, by implementing a function for each table to implement the structure to generate the XML.

도 3은 종래의 구성관리 XML 익스포트 방법을 위한 구성의 개략도이다.3 is a schematic diagram of a configuration for a conventional configuration management XML export method.

구성관리 XML 익스포트 방법을 위한 구성은 XML 생성 대상이 되는 DB(200)와, XML 생성을 위한 함수별 테이블 1~N(300)과, XML 생성 요청에 따라 테이블 1~N(300)을 이용하여 DB(200)로부터 해당 정보를 추출하여 XML을 생성하는 XML 익스포터(30)로 구성된다.The configuration for the configuration management XML export method is to use the DB (200) that is the XML generation target, tables 1 ~ N (300) for each function for XML generation, and tables 1 ~ N (300) according to the XML generation request It is composed of an XML exporter 30 for extracting the information from the DB 200 to generate XML.

이러한 구성에 의해, XML 생성 요청에 따라 익스퍼트할 대상 테이블이 선택되면, 해당 함수가 호출되어 스키마 태그를 작성한 다음, DB(200)를 검색하여 해당 값(value)들을 추출하고, 로우 태그(row tag)를 작성하여 기 작성된 스키마 태그와 합성하여 전체 스트링(string)이 완성되면 지정된 파일로 출력한다.With this configuration, when the target table to be exported is selected according to the XML generation request, the corresponding function is called to create a schema tag, and then the DB 200 is searched to extract the corresponding values, and a row tag. ) And compose it with the already created schema tag and when the entire string is completed, output it to the designated file.

한편, 기존 익스포터(30)는 도 3에 도시된 바와 같이, XML을 생성하는 함수를 테이블 1~N(300) 별로 구현하는데, 그 예는 도 4a에 도시된 바와 같다. Meanwhile, as illustrated in FIG. 3, the existing exporter 30 implements a function for generating XML for each of Tables 1 to N 300, an example of which is illustrated in FIG. 4A.

도 4a 및 도 4b는 종래의 XML 구조(a)와, XLM 예제(b)를 나타낸 도면이다.4A and 4B show a conventional XML structure (a) and an XLM example (b).

여기서, 구성관리 XML 익스포터(30)가 생성해야 하는 XML의 구조는, 예를 들면, 도 4b에 도시된 바와 같다.Here, the structure of the XML which the configuration management XML exporter 30 should generate is as shown in FIG. 4B, for example.

즉, 구성관리 XML 익스포터(30)는 처리하고자 하는 테이블 1~N(300)의 스키마를 분석하여 태그 스트링을 작성하고, 해당되는 값(value)들을 DB(200)로부터 검색하여 그에 따른 값 태그(value tag)를 작성하여 최종적으로 파일을 출력한다. That is, the configuration management XML exporter 30 analyzes the schema of the tables 1 to N 300 to be processed to create a tag string, retrieves the corresponding values from the DB 200, and generates a value tag accordingly. value tag) and finally output the file.

그러나, 이와 같은 종래의 구성관리 XML 익스포터 및 그 방법은 DB 변경이 발생할 때마다 해당 함수를 수정하거나 새로운 함수를 추가해야 하는 번거로운 작업을 수행해야 하므로 운용적인 측면에서는 심각한 문제점이 될 수 있다.However, such a conventional configuration management XML exporter and its method can be a serious problem in terms of operation because it has to perform a cumbersome task of modifying or adding a new function every time a DB change occurs.

또한, DB 스키마가 확장됨에 따라 이를 수용할 수 있는 패키지 제작이 수반되게 되는데, 종래의 방식은 단순한 테이블 구조 변경이나 칼럼의 추가가 발생할 경우에도, 해당 함수의 소스를 변경하여 빈번한 패키지 적용을 해야 하는 문제점이 있다.In addition, as the DB schema is extended, a package that can accommodate it is involved. In the conventional method, even when a simple table structure change or addition of a column occurs, the source of a corresponding function must be changed to frequently apply a package. There is a problem.

본 발명은 상기와 같은 문제점을 해결하기 위하여 제안된 것으로, 데이터베이스의 변경시 그에 따른 해당 함수를 수정하거나 새로운 함수를 추가하기 위한 작업을 하지 않고도 새로운 XML을 동적으로 생성할 수 있는 동적 구성관리 XML 익스포트 방법을 제공하는 것을 목적으로 한다.The present invention has been proposed to solve the above problems, and dynamic configuration management XML export that can dynamically generate a new XML without modifying the corresponding function or adding a new function when the database changes It is an object to provide a method.

상기와 같은 목적을 달성하기 위한 본 발명은 구성관리 서버(CMS)의 데이터베이스와 연동하여 XML을 생성하는 함수별 테이블에 대한 리스트 및 주요 인자로 구성된 테이블을 생성하는 테이블생성 단계와; XML 생성 요청에 따라 상기 생성된 테이블에 접근하기 위한 클래스를 생성하는 클래스생성 단계와; 상기 생성된 클래스를 통하여 상기 데이터베이스로부터 해당정보를 추출하여 XML 스트링을 작성하는 XML작성 단계를 포함하여 이루어진 것을 특징으로 한다.The present invention for achieving the above object is a table generation step of generating a table consisting of a list and a main factor for the function-specific table to generate XML in conjunction with the database of the configuration management server (CMS); A class generation step of generating a class for accessing the generated table according to an XML generation request; And an XML creation step of extracting corresponding information from the database through the generated class to create an XML string.

바람직하게는 상기 테이블생성 단계가 상기 함수별 테이블의 리스트로 구성된 클래스 테이블을 생성하는 클래스테이블생성 단계와; 상기 함수별 테이블의 칼럼 정보로 구성된 속성 테이블을 생성하는 속성테이블생성 단계를 포함할 수 있다. Preferably, the table generation step of the class table generation step of generating a class table consisting of a list of the table for each function; An attribute table generation step of generating an attribute table including column information of the function-specific table may be included.

바람직하게는 상기 테이블생성 단계가 상기 데이터베이스의 변경에 따른 상기 함수별 테이블의 변경 내용을 상기 클래스 테이블 및 상기 속성 테이블에 추가하여 갱신하는 갱신 단계를 추가로 포함할 수 있다. Preferably, the table generation step may further include an update step of updating the addition of the change of the table for each function according to the change of the database to the class table and the attribute table.

바람직하게는 상기 클래스생성 단계가 XML 생성 요청에 따라 상기 클래스 테이블로부터 관련 함수가 존재하는지를 검색하는 클래스(EmsClassTable)를 생성하는 제 1 생성 단계와; 상기 클래스(EmsClassTable)의 검색결과에 따라 상기 속성 테이블로부터 상기 함수별 테이블의 칼럼정보를 추출하는 클래스(EmsAttrTable)를 생성하는 2 생성 단계를 포함할 수 있다. Preferably, the class generation step comprises: a first generation step of generating a class (EmsClassTable) for retrieving whether a related function exists from the class table according to an XML generation request; And a two generation step of generating a class (EmsAttrTable) for extracting column information of the table for each function from the attribute table according to the search result of the class (EmsClassTable).

바람직하게는 상기 XML작성 단계가 상기 클래스(EmsAttrTable)에 의해 추출된 칼럼정보를 이용하여 생성하고자 하는 XML의 스키마 태그를 작성하는 제 1 작성 단계와; 상기 칼럼정보에 대응하는 상기 데이터베이스의 정보를 추출하는 추출 단계와; 상기 추출된 상기 데이터베이스의 정보를 이용하여 로우 태그를 작성하는 제 2 작성 단계를 포함할 수 있다. Preferably, the XML creation step comprises: a first creation step of creating a schema tag of XML to be generated using column information extracted by the class EmSAttrTable; An extraction step of extracting information of the database corresponding to the column information; And generating a row tag using the extracted information of the database.

이하, 본 발명의 바람직한 실시예를 첨부된 도면을 참조하여 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 실시예에 따른 동적 구성관리 XML 익스포트 방법을 위한 구성을 개략적으로 나타낸 블록도이다. 1 is a block diagram schematically illustrating a configuration for a dynamic configuration management XML export method according to an embodiment of the present invention.

본 발명의 실시예에 따른 동적 구성관리 XML 익스포트 방법을 위한 구성은 XML 생성 대상이 되는 DB(200)와, XML 생성을 위한 함수별 테이블 1~N(300)과, XML 생성 요청에 따라 테이블 1~N(300)을 이용하여 DB(200)로부터 해당 정보를 추출하여 XML을 생성하는 동적 구성관리 XML 익스포터(10)로 구성된다.The configuration for the dynamic configuration management XML export method according to an embodiment of the present invention is the DB 200 to be XML generation target, Table 1 ~ N (300) for each function for XML generation, Table 1 according to the XML generation request It is composed of a dynamic configuration management XML exporter 10 for generating XML by extracting the corresponding information from the DB 200 using ˜N 300.

여기서, 동적 구성관리 XML 익스포터(10)는 XML 생성 요청에 따라 클래스 테이블(130)로부터 관련함수를 검색하는 클래스(EmsClassTable)(110)와, 속성 테이블(140)로부터 칼럼정보를 추출하는 클래스(EmsAttrTable)(120)와, 테이블 1~N(300)의 리스트로 구성된 클래스 테이블(130)과, 테이블 1~N(300)의 칼럼 정보로 구성된 속성 테이블(140)로 구성된다. Here, the dynamic configuration management XML exporter 10 is a class (EmsClassTable) 110 for retrieving related functions from the class table 130 according to the XML generation request, and a class (EmsAttrTable) for extracting column information from the attribute table 140. ) 120, a class table 130 composed of a list of tables 1 to N 300, and an attribute table 140 composed of column information of tables 1 to N 300.

이러한 구성에 의해, 운용자가 생성하고자 하는 테이블을 입력하게 되면 클래스(EmsClassTable)(110)를 이용하여 클래스 테이블(130)에 해당 정보가 존재하는지를 검색하여 해당 테이블이 존재하면 그에 대응하는 고유키(unique key)값을 리턴한다. By this configuration, when the operator inputs a table to be created, the class (EmsClassTable) 110 is used to search whether the corresponding information exists in the class table 130, and if the corresponding table exists, the corresponding unique key (unique) key) value is returned.

클래스(EmsAttrTable)(120)가 리턴된 고유키 값을 이용해서 속성 테이블(140)로부터 그에 해당하는 모든 칼럼 정보를 리턴하면, 동적 구성관리 XML 익스포터(10)는 리턴된 칼럼 정보를 이용하여 스키마 태그를 작성한다. If the class (EmsAttrTable) 120 returns all column information corresponding from the attribute table 140 using the returned unique key value, the dynamic configuration management XML exporter 10 uses the returned column information to identify the schema tag. Write.

이후에, 동적 구성관리 XML 익스포터(10)는 리턴된 칼럼 정보를 이용하여 DB(200)로부터 각 칼럼에 해당하는 값을 추출하며, 이를 이용하여 로우 태그를 작성한 다음, 이를 미리 작성된 스키마 태그에 부가하여 전체 XML 스트링을 완성하고, 완성된 XML 스트링을 파일로 출력한다. Thereafter, the dynamic configuration management XML exporter 10 extracts a value corresponding to each column from the DB 200 by using the returned column information, creates a row tag using this, and adds the row tag to a pre-created schema tag. To complete the entire XML string and output the complete XML string to a file.

이와 같이, 본 발명은 DB(200) 스키마의 변경에 대해서 동적으로 그 정보를 갱신하여 새로운 XML을 생성할 수 있는데, 이를 위하여 테이블 1~N(300) 정보들을 동적으로 관리할 수 있는 클래스 테이블(130)과 속성 테이블(140)을 생성하고, 그에 대한 접근(Access) 기능을 위한 API(Application Program Interface) 클래스를 생성한다. As described above, the present invention can generate a new XML by dynamically updating the information about the change of the DB 200 schema, and for this purpose, a class table that can dynamically manage the information of Tables 1 to 300. 130 and the property table 140, and creates an API (Application Program Interface) class for the access (Access) function.

이하, 도 2를 참조하여 본 발명의 실시예에 따른 동적 구성관리 XML 익스포트 방법을 설명한다.Hereinafter, a dynamic configuration management XML export method according to an embodiment of the present invention will be described with reference to FIG. 2.

도 2는 본 발명의 실시예에 따른 동적 구성관리 XML 익스포트 방법을 나타낸 순서도이다. 2 is a flowchart illustrating a dynamic configuration management XML export method according to an embodiment of the present invention.

먼저, 단계 S201에서, 함수별 테이블의 리스트로 구성된 클래스 테이블을 생성하면, 동적 구성관리 XML 익스포트 방법이 개시된다. First, in step S201, when a class table composed of a list of function-specific tables is generated, a dynamic configuration management XML export method is started.

즉, 동적 구성관리 XML 익스포터(10)는 구성관리 서버(CMS)의 DB(200)와 연동하여 XML을 생성하는 함수별 테이블 1~N(300)에 대한 리스트를 생성하여 테이블 화 한다. That is, the dynamic configuration management XML exporter 10 generates a table for the tables 1 to N 300 for each function that generates XML in association with the DB 200 of the configuration management server (CMS).

단계 S202에서, 함수별 테이블의 칼럼 정보로 구성된 속성 테이블을 생성한다. In step S202, an attribute table composed of column information of a function-specific table is generated.

보다 구체적으로, 동적 구성관리 XML 익스포터(10)는 구성관리 서버(CMS)의 DB(200)와 연동하여 XML을 생성하는 함수별 테이블 1~N(300)에 대한 주요 인자, 예를 들면, 칼럼 정보를 추출하여 테이블화 한다. More specifically, the dynamic configuration management XML exporter 10 is a main factor, for example, a column for the tables 1 to N 300 for each function that generates XML in conjunction with the DB 200 of the configuration management server (CMS). Extract information into tables.

여기서, 단계 S201 및 단계 S202에서 생성되는 클래스 테이블(130) 및 속성 테이블(140)은 DB(200)의 초기 구성시에 생성되며, 또한, DB(200)의 변경시 그에 따른 테이블 1~N(300)의 변경 내용을 추가하여 갱신한다. Here, the class table 130 and the attribute table 140 generated in the step S201 and the step S202 are generated at the initial configuration of the DB 200, and, when the DB 200 is changed, the tables 1 to N ( Update by adding 300).

예를 들면, 도 4b의 스키마 태그(<sch> ~ 중략 ~ </sch>) 또는 로우 태그(<raw> ~ 중략 ~ </raw>에서 "16"에 이어서 "17"의 인자가 추가된 경우, 그에 대한 추가정보만 속성 테이블(140)에 부가하여 갱신하면, 후술하는 바와 같이, 함수의 소스를 별도로 작업하지 않고도 새로운 XML를 생성할 수 있다. For example, when a parameter of "17" is added after "16" in the schema tag (<sch> to omission </ </ >>) or row tag (<raw> to omission </ </ >> of FIG. 4B. If only the additional information thereof is added to the attribute table 140 and updated, new XML may be generated without separately working on the source of the function as described below.

단계 S203에서, 운용자 또는 관련 프로그램에 의해 XML의 생성을 요청한다.In step S203, creation of XML is requested by an operator or a related program.

이때, 동적 구성관리 XML 익스포터(10)는 클래스 테이블(130)로부터 해당 함수가 존재하는지를 검색하기 위한 클래스(EmsClassTable)(110)를 생성한다. At this time, the dynamic configuration management XML exporter 10 generates a class (EmsClassTable) 110 for searching whether the corresponding function exists from the class table 130.

단계 S204에서, XML 생성 요청에 따른 XML를 생성하기 위한 함수를 클래스 테이블로부터 검색한다. In step S204, a function for generating XML according to the XML generation request is retrieved from the class table.

구체적으로, 동적 구성관리 XML 익스포터(10)는 XML 생성 요청에 따라 생성된 클래스(EmsClassTable)(110)를 이용하여 클래스 테이블(130)로부터 관련 함수가 존재하는지를 검색한다. In detail, the dynamic configuration management XML exporter 10 searches whether the relevant function exists from the class table 130 by using a class (EmsClassTable) 110 generated according to an XML generation request.

단계 S205에서, 클래스(EmsClassTable)는 클래스 테이블로부터 해당 함수를 검색하여 그에 대응하는 고유키를 리턴한다. In step S205, the class EmsClassTable retrieves the corresponding function from the class table and returns a unique key corresponding thereto.

즉, 클래스(EmsClassTable)(110)는 클래스 테이블(130)을 검색하여 해당 고유키를 리턴한다. That is, the class (EmsClassTable) 110 searches the class table 130 and returns the corresponding unique key.

이때, 동적 구성관리 XML 익스포터(10)는 클래스(EmsClassTable)(110)의 검색결과에 따라 속성 테이블(140)부터 함수별 테이블 1~N(300)의 칼럼 정보를 추출하기 위한 클래스(EmsAttrTable)(120)를 생성한다. At this time, the dynamic configuration management XML exporter 10 is a class (EmsAttrTable) for extracting column information of the tables 1 to N (300) by function from the attribute table 140 according to the search result of the class (EmsClassTable) 110 ( 120).

단계 S206에서, 클래스(EmsAttrTable)가 속성 테이블로부터 해당 함수별 테이블의 칼럼 정보를 검색하여 그 결과를 리턴한다. In step S206, the class EmsAttrTable retrieves column information of the corresponding function table from the attribute table and returns the result.

즉, 클래스(EmsAttrTable)(120)는 속성 테이블(140)을 검색하여 해당 칼럼 정보를 리턴한다. That is, the class (EmsAttrTable) 120 searches the attribute table 140 and returns corresponding column information.

단계 S207에서, 클래스(EmsAttrTable)에 의해 리턴된 칼럼 정보를 이용하여 생성하고자 하는 XML의 스키마 태그를 작성한다. In step S207, a schema tag of XML to be generated is created using the column information returned by the class EmSAttrTable.

구체적으로, 동적 구성관리 XML 익스포터(10)는 리턴된 칼럼 정보를 기초로 생성하고자 하는 XML의 스키마 태그를 작성한다.Specifically, the dynamic configuration management XML exporter 10 creates a schema tag of XML to be generated based on the returned column information.

여기서, 예를 들면, DB(200) 스키마가 변경된 경우, 단계 S201 및 단계 S202에서와 같이, 속성 테이블(140)에 해당 변경 정보를 추가하여 갱신하였다고 가정하면, 클래스(EmsAttrTable)(120)에 의해 리턴되는 칼럼 정보에는 DB(200)의 변경에 따라 갱신된 변경 정보가 포함된다. Here, for example, if the schema of the DB 200 is changed, assuming that the corresponding change information is added to the attribute table 140 and updated, as in steps S201 and S202, the class (EmsAttrTable) 120 uses the same. The returned column information includes change information updated according to the change of the DB 200.

단계 S208에서, 리턴된 칼럼 정보에 대응하는 데이터베이스의 정보를 추출한다. In step S208, information of the database corresponding to the returned column information is extracted.

구체적으로, 동적 구성관리 XML 익스포터(10)는 속성 테이블(140)로부터 리턴된 칼럼 정보에 대응하는 값(value)을 DB(200)로부터 검색하여 추출하는데, 이때, 속성 테이블(140)로부터 변경된 칼럼 정보가 리턴되는 경우, DB(200)의 변경된 값이 추출됨으로써, DB(200) 변경에 따른 XML 생성을 위한 함수의 소스를 재작성하지 않을 수 있다. Specifically, the dynamic configuration management XML exporter 10 retrieves and extracts a value corresponding to the column information returned from the attribute table 140 from the DB 200, wherein the column changed from the attribute table 140 is extracted. When the information is returned, the changed value of the DB 200 is extracted, so that the source of the function for generating the XML according to the DB 200 change may not be rewritten.

단계 S209에서, 추출된 데이터베이스의 정보를 이용하여 로우 태그를 작성한다. In step S209, a row tag is created using the extracted database information.

보다 구체적으로, 동적 구성관리 XML 익스포터(10)는 리턴된 칼럼 정보에 따라 DB(200)로부터 검색한 값을 기초로 로우 태그를 작성하는데, 이때, DB(200)로부터 변경된 값이 추출된 경우, XML를 구성하기 위한 로우 태그는 해당 변경 값을 포함한다.More specifically, the dynamic configuration management XML exporter 10 creates a row tag based on the value retrieved from the DB 200 according to the returned column information. In this case, when the changed value is extracted from the DB 200, The row tag to construct the XML contains the corresponding change value.

단계 S210에서, 기 작성된 스키마 태그와 로우 태그를 합성한다.In step S210, the previously created schema tag and row tag are synthesized.

상술한 바와 같이, 스키마 태그 및 로우 태그 각각은, DB(200)의 변경에 따라 클래스 테이블(130) 및 속성 테이블(140)이 갱신되면, 이를 참조로 DB(200)의 변경된 값을 반영하기 때문에 새로운 XML를 생성할 수 있다. As described above, since the schema tag and the row tag are each updated when the class table 130 and the attribute table 140 are updated according to the change of the DB 200, the schema tag and the row tag reflect the changed value of the DB 200. You can generate new XML.

단계 S211에서, 동적 구성관리 XML 익스포터(10)는 생성된 XML 스트링을 출력하면, 동적 구성관리 XML 익스포트 방법이 종료된다. In step S211, when the dynamic configuration management XML exporter 10 outputs the generated XML string, the dynamic configuration management XML export method ends.

이와 같은 방법에 의해, DB(200) 변경시 XML를 생성하기 위한 함수별 테이블 1~N(300)의 소스를 별도로 작성하지 않고, 테이블 1~N(300)의 리스트 및 주요 인자로 구성된 클래스 테이블(130)과 속성 테이블(140)만을 관리하여 DB(200) 변경에 따라 동적으로 새로운 XML를 생성할 수 있다. By such a method, a class table consisting of a list of the tables 1 to N 300 and main factors, without separately creating a source of the tables 1 to N 300 for each function for generating XML when the DB 200 is changed. By managing only the 130 and the attribute table 140, new XML may be dynamically generated according to the DB 200 change.

이상에서 설명한 바와 같이, 본 발명에 따른 구성관리 XML는 XML을 생성하는 함수별 테이블에 대한 리스트 및 주요 인자를 별도의 테이블로 구성관리하여 데이터베이스의 변경시 상기 테이블의 리스트 및 인자만을 갱신함으로써, 데이터베이스 변경에 따라 해당 함수를 수정하거나 새로운 함수를 추가하기 위한 작업을 수행하지 않고도, 새로운 XML을 동적으로 생성할 수 있는 효과가 있다. As described above, the configuration management XML according to the present invention is configured to manage the list and the main arguments for the table for each function to generate the XML as a separate table to update only the list and arguments of the table when the database is changed, The effect is that you can dynamically generate new XML without having to modify the function or add a new function as a change.

Claims (5)

구성관리 서버(CMS)의 데이터베이스와 연동하여 XML을 생성하는 함수별 테이블에 대한 리스트 및 주요 인자로 구성된 테이블을 생성하는 테이블생성 단계와;A table generation step of generating a table consisting of a list of tables for each function for generating XML in association with a database of a configuration management server (CMS) and main factors; XML 생성 요청에 따라 상기 생성된 테이블에 접근하기 위한 클래스를 생성하는 클래스생성 단계와;A class generation step of generating a class for accessing the generated table according to an XML generation request; 상기 생성된 클래스를 통하여 상기 데이터베이스로부터 해당정보를 추출하여 XML 스트링을 작성하는 XML작성 단계를 포함하여 이루어진 것을 특징으로 하는 동적 구성관리 XML 익스포트 방법.And an XML creation step of extracting corresponding information from the database through the generated class to create an XML string. 제 1 항에 있어서,The method of claim 1, 상기 테이블생성 단계는,The table generation step, 상기 함수별 테이블의 리스트로 구성된 클래스 테이블을 생성하는 클래스테이블생성 단계와;A class table generation step of generating a class table consisting of a list of tables for each function; 상기 함수별 테이블의 칼럼 정보로 구성된 속성 테이블을 생성하는 속성테이블생성 단계를 포함하는 것을 특징으로 하는 동적 구성관리 XML 익스포트 방법.Dynamic attribute management XML export method comprising the step of generating an attribute table consisting of the column information of the function-specific table. 제 2 항에 있어서,The method of claim 2, 상기 테이블생성 단계는 상기 데이터베이스의 변경에 따른 상기 함수별 테이블의 변경 내용을 상기 클래스 테이블 및 상기 속성 테이블에 추가하여 갱신하는 갱신 단계를 추가로 포함하는 것을 특징으로 하는 동적 구성관리 XML 익스포트 방법.The table generation step further includes an update step of updating by adding to the class table and the attribute table the change of the table for each function according to the change of the database. 제 2 항에 있어서,The method of claim 2, 상기 클래스생성 단계는,The class generation step, XML 생성 요청에 따라 상기 클래스 테이블로부터 관련 함수가 존재하는지를 검색하는 클래스(EmsClassTable)를 생성하는 제 1 생성 단계와;A first generation step of generating a class (EmsClassTable) for searching whether a related function exists from the class table according to an XML generation request; 상기 클래스(EmsClassTable)의 검색결과에 따라 상기 속성 테이블로부터 상기 함수별 테이블의 칼럼정보를 추출하는 클래스(EmsAttrTable)를 생성하는 2 생성 단계를 포함하는 것을 특징으로 하는 동적 구성관리 XML 익스포트 방법.And a two generation step of generating a class (EmsAttrTable) for extracting column information of the table for each function from the attribute table according to a search result of the class (EmsClassTable). 제 4 항에 있어서,The method of claim 4, wherein 상기 XML작성 단계는,The XML creation step, 상기 클래스(EmsAttrTable)에 의해 추출된 칼럼정보를 이용하여 생성하고자 하는 XML의 스키마 태그를 작성하는 제 1 작성 단계와;A first creating step of creating a schema tag of XML to be generated using column information extracted by the class EmsAttrTable; 상기 칼럼정보에 대응하는 상기 데이터베이스의 정보를 추출하는 추출 단계와;An extraction step of extracting information of the database corresponding to the column information; 상기 추출된 상기 데이터베이스의 정보를 이용하여 로우 태그를 작성하는 제 2 작성 단계를 포함하는 것을 특징으로 하는 동적 구성관리 XML 익스포트 방법.And a second creating step of creating a row tag by using the extracted information of the database.
KR1020050122288A 2005-12-13 2005-12-13 Dynamic cm xml exporting method KR20070062644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050122288A KR20070062644A (en) 2005-12-13 2005-12-13 Dynamic cm xml exporting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050122288A KR20070062644A (en) 2005-12-13 2005-12-13 Dynamic cm xml exporting method

Publications (1)

Publication Number Publication Date
KR20070062644A true KR20070062644A (en) 2007-06-18

Family

ID=38362896

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050122288A KR20070062644A (en) 2005-12-13 2005-12-13 Dynamic cm xml exporting method

Country Status (1)

Country Link
KR (1) KR20070062644A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007967A (en) * 2014-05-21 2014-08-27 广州华多网络科技有限公司 User interface generation method and device based on xml

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007967A (en) * 2014-05-21 2014-08-27 广州华多网络科技有限公司 User interface generation method and device based on xml

Similar Documents

Publication Publication Date Title
US11100059B2 (en) Construction of database schema models for database systems and rest APIs
US8010530B2 (en) Presentation of multilingual metadata
EP1290575B1 (en) A document processing system and method
US8700988B2 (en) Selectively interpreted portal page layout template
KR101331532B1 (en) Dynamic method for generating xml documents from a database
US9141727B2 (en) Information search device, information search method, computer program, and data structure
US7383498B1 (en) Editing styles for markup documents using parametrized styles sheets
US20070174308A1 (en) Data warehousing systems and methods having reusable user transforms
JP2002024211A (en) Method and system for document management and storage medium having processing program stored thereon
US20090235164A1 (en) Text file interface support in an object oriented application
CN112631591A (en) Table element linkage method, device, equipment and computer readable storage medium
US20100235380A1 (en) Data processing method, apparatus and program
KR100899616B1 (en) Method and system of management metadata using relational database management system
JPH09319632A (en) Method and device for managing version of structured document
US10262026B2 (en) Relational file database and graphic interface for managing such a database
CN110309118A (en) A kind of design method of depth network data excavation robot
JP6446819B2 (en) Document difference display program and information processing apparatus
KR20070099689A (en) Database management apparatus and method of managing database
KR20070062644A (en) Dynamic cm xml exporting method
US8073870B2 (en) Methods for storing data
JP2005011055A (en) Electronic form designing and managing method and device, processing program and recording medium
JP2005056085A (en) Data structure conversion program
KR101765324B1 (en) Sources code generating apparatus using structured query language and diagram, and method for processing thereof
JP2006072705A (en) Document search device and method
WO2022107228A1 (en) Operation assistance device, operation assistance method, and operation assistance program

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination