Back to Search Start Over

An Algorithm to Transform XML Schema into Java Codes

Authors :
Jia-Ju Wu
Yong-Qi Ma
Lirong Meng
Bin Ji
Yong-Hui Xie
Source :
DEStech Transactions on Computer Science and Engineering.
Publication Year :
2017
Publisher :
DEStech Publications, 2017.

Abstract

This paper implements a transformation algorithm, which is used to transform XML Schema into Java codes. Based on the algorithm design, we first defined a Java class, which is used to implement paring unit of the algorithm. Secondly, we defined a Java class for each of the twenty-eight kinds of elements and twelve kinds of facet elements, and build import or other relation between these classes according to any possible nested relation between elements. These classes are used to create Java objects for elements. Thirdly, in order to increase code reusability or define data type of Java class variables conveniently, we defined a set of Java abstract classes or interfaces. Related Java classes extend or implement these abstract classes or interfaces to realize specific functions. Finally, we performed numerous experiments to validate the algorithm. The algorithm can transform any non-empty and well-formed XML Schema documents into Java objects, and can be applied to any XML related software development.

Details

ISSN :
24758841
Database :
OpenAIRE
Journal :
DEStech Transactions on Computer Science and Engineering
Accession number :
edsair.doi.dedup.....0ae64d71dcde8e407e27d37dcfd9a602
Full Text :
https://doi.org/10.12783/dtcse/cimns2017/16311