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


The KIPS Transactions:PartD, Vol. 13, No. 4, pp. 549-556, Aug. 2006
10.3745/KIPSTD.2006.13.4.549,   PDF Download:

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.


Statistics
Show / Hide Statistics

Statistics (Cumulative Counts from September 1st, 2017)
Multiple requests among the same browser session are counted as one view.
If you mouse over a chart, the values of data points will be shown.


Cite this article
[IEEE Style]
G. J. Choe and Y. K. Nam, "Skeleton Code Generation for Transforming an XML Document with DTD using Metadata Interface," The KIPS Transactions:PartD, vol. 13, no. 4, pp. 549-556, 2006. DOI: 10.3745/KIPSTD.2006.13.4.549.

[ACM Style]
Gui Ja Choe and Young Kwang Nam. 2006. Skeleton Code Generation for Transforming an XML Document with DTD using Metadata Interface. The KIPS Transactions:PartD, 13, 4, (2006), 549-556. DOI: 10.3745/KIPSTD.2006.13.4.549.