Browse > Article
http://dx.doi.org/10.3745/KIPSTD.2006.13D.4.549

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

Choe Gui-Ja (연세대학교 전산학과)
Nam Young-Kwang (연세대학교 전산학과)
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.
Keywords
XML; DTD; Document Translation; Metadata Interface;
Citations & Related Records
Times Cited By KSCI : 1  (Citation Analysis)
연도 인용수 순위
1 ALTOVA XMLSpy, http://www.altova.com
2 Stylus Studio XML Enterprise Edition, http://www.stylusstudio.com
3 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
4 홍종하, 양유승, 나홍석, 백두권, '메타데이터 레지스트리를 이용한 XML-문서 교환 방법', 정보과학회 봄 학술발표 논문집 Vol. 28, No.1, pp 94-96, 2001
5 H. Su, H. Kuno, E. 'Rundensteiner, Automating the Transformation of XML Documents', WIDM 2001, Atlanta   DOI
6 T. Pankowski. 'Transformation of XML Data Using an Unranked Tree Transducer', EC-Web 2003, LNCS 2738, pp.259-269, 2003
7 S. Krishnamurthi, K. E. Gray and P. T. Graunke. 'Transformation-by-Example for XML', PADL 2000, LNCS 1753, pp.249-262, 2000
8 성길용, 강치원, 정회경, '구조적 문서 변환을 위한 XML Mapper 시스템 설계 및 구현', 정보과학회 봄 학술발표 논문집 Vol.28, No.1, pp.382-384, 2001
9 심민석, 유대승, 엄정섭, 강만모, 이명재, 'XTGen: XML 변환기 생성을 위한 컴포넌트 기반 시스템', 정보과학회 봄 학술발표 논문집 Vol.28, No.1, pp.310-312, 2001
10 F. Bendeck. 'Automation of XML Documents Translator Generation', WETICE 2001, pp.37-38, 2001   DOI
11 XSL Transformations (XSLT) Version 1.0, http://www.w3.org /TR/xslt/
12 조정길, 조윤기, 구연설, '구조적 상이성 분석에 기반한 XML 문서 변환 시스템의 설계 및 구현', 정보처리학회 논문지D, 제 9-D권 제 2호,pp. 297-306, 2002   과학기술학회마을   DOI
13 M. Erwig. 'Toward the Automatic Derivation of XML Transformations', ER 2003 Workshops, LNCS 2814, pp.342-354, 2003
14 EIA/IS-106 'CDIF-CASE Data Interchange Format Overview', January 1994
15 XML Path Language (XPath) 1.0, http://www.w3.org/TR/xpath/
16 J. Eder and W. Strametz. 'Composition of XML-Transformations', EC-Web 2001, LNCS 2115, pp.71-80, 2001
17 XML Metadata Interchange (XMI), http://www-4.ibm.com/software/ad/library/ standards/xmi.html