DOI QR코드

DOI QR Code

Skeleton Code Generation for Transforming an XML Document with DTD using Metadata Interface

메타데이터 인터페이스를 이용한 DTD 기반 XML 문서 변환기의 골격 원시 코드 생성

  • Published : 2006.08.01

Abstract

In this paper, we propose a system for generating skeleton programs for directly transforming an XML document to another document, whose structure is defined in the target DTD with GUI environment. With the generated code, the users can easily update or insert their own codes into the program so that they can convert the document as the way that they want and can be connected with other classes or library files. Since most of the currently available code generation systems or methods for transforming XML documents use XSLT or XQuery, it is very difficult or impossible for users to manipulate the source code for further updates or refinements. As the generated code in this paper reveals the code along the XPaths of the target DTD, the result code is quite readable. The code generating procedure is simple; once the user maps the related elements represented as trees in the GUI interface, the source document is transformed into the target document and its corresponding Java source program is generated, where DTD is given or extracted from XML documents automatically by parsing it. The mapping is classified 1:1, 1:N, and N:1, according to the structure and semantics of elements of the DTD. The functions for changing the structure of elements designated by the user are amalgamated into the metadata interface. A real world example of transforming articles written in XML file into a bibliographical XML document is shown with the transformed result and its code.

본 논문에서는 목표 문서의 DTD에 정의된 구조에 따라 원시문서를 목표 문서로 변환하는 XML 문서변환기와 골격 원시 프로그램을 생성하는 방법을 제안한다. 사용자는 생성된 프로그램을 이용하여 코드를 추가하거나 프로그램을 변경하고, 외부 클래스나 라이브러리 파일들을 연결하여 자신이 원하는 방법으로 쉽게 문서를 변환할 수 있다. 생성된 프로그램은 목표 DTD 경로(path)를 기준으로 코드를 생성하기 때문에 가독성이 높다. 현재까지의 대부분의 XML 문서변환은 XSLT를 이용하거나 XQuery를 이용하여 Java 프로그램을 생성하고 있으나, 각 요소별로 코드를 조작할 수 없는 단점이 있다. 본 논문에서 제안된 방법은 사용자가 원시/목표 문서에서 제공되는 DTD 혹은 문서에서 자동으로 추출된 DTD를 이용하여 원소 사이의 관계를 지정하면 자동적으로 문서가 변환되고 Java 원시 프로그램을 생성하기 때문에 코드 생성과정이 매우 단순하다. 메타데이터 인터페이스는 Java GUI를 이용하여 트리 형태로 표현된 DTD의 원소를 클릭하여 쉽게 생성할 수 있다. 문서변환을 위한 매핑은 원소의 특성에 따라 1:1, 1:N, N:1로 구분되며 데이터의 분해 혹은 합성을 위한 사용자 지정 함수가 메타데이터 인터페이스에 저장된다. 본 시스템은 실제 사용되고 있는 논문 XML 문서를 서지문서로 변환한 결과 및 프로그램 코드를 예제로 구현하여 결과를 제시하였다.

Keywords

References

  1. EIA/IS-106 'CDIF-CASE Data Interchange Format Overview', January 1994
  2. XML Metadata Interchange (XMI), http://www-4.ibm.com/software/ad/library/ standards/xmi.html
  3. XSL Transformations (XSLT) Version 1.0, http://www.w3.org /TR/xslt/
  4. J. Eder and W. Strametz. 'Composition of XML-Transformations', EC-Web 2001, LNCS 2115, pp.71-80, 2001
  5. M. Erwig. 'Toward the Automatic Derivation of XML Transformations', ER 2003 Workshops, LNCS 2814, pp.342-354, 2003
  6. XML Path Language (XPath) 1.0, http://www.w3.org/TR/xpath/
  7. 홍종하, 양유승, 나홍석, 백두권, '메타데이터 레지스트리를 이용한 XML-문서 교환 방법', 정보과학회 봄 학술발표 논문집 Vol. 28, No.1, pp 94-96, 2001
  8. 조정길, 조윤기, 구연설, '구조적 상이성 분석에 기반한 XML 문서 변환 시스템의 설계 및 구현', 정보처리학회 논문지D, 제 9-D권 제 2호,pp. 297-306, 2002 https://doi.org/10.3745/KIPSTD.2002.9D.2.297
  9. 성길용, 강치원, 정회경, '구조적 문서 변환을 위한 XML Mapper 시스템 설계 및 구현', 정보과학회 봄 학술발표 논문집 Vol.28, No.1, pp.382-384, 2001
  10. 심민석, 유대승, 엄정섭, 강만모, 이명재, 'XTGen: XML 변환기 생성을 위한 컴포넌트 기반 시스템', 정보과학회 봄 학술발표 논문집 Vol.28, No.1, pp.310-312, 2001
  11. F. Bendeck. 'Automation of XML Documents Translator Generation', WETICE 2001, pp.37-38, 2001 https://doi.org/10.1109/ENABL.2001.953384
  12. S. Krishnamurthi, K. E. Gray and P. T. Graunke. 'Transformation-by-Example for XML', PADL 2000, LNCS 1753, pp.249-262, 2000
  13. T. Pankowski. 'Transformation of XML Data Using an Unranked Tree Transducer', EC-Web 2003, LNCS 2738, pp.259-269, 2003
  14. H. Su, H. Kuno, E. 'Rundensteiner, Automating the Transformation of XML Documents', WIDM 2001, Atlanta https://doi.org/10.1145/502932.502946
  15. Y. K. Nam, J. Goguen, G. Wang. 'A Metadata Integration Assistant Generator for Heterogeneous Distributed Data bases', in Proceedings, International Conference on Ontologies, DataBases, and Applications of Semantics for Large Scale Information Systems, Springer, LNCS, Vol.2519, pp.1332-1344, 2002
  16. ALTOVA XMLSpy, http://www.altova.com
  17. Stylus Studio XML Enterprise Edition, http://www.stylusstudio.com