Font Size: a A A

XML In Universal Data Conversion

Posted on:2005-05-11Degree:MasterType:Thesis
Country:ChinaCandidate:Y M WangFull Text:PDF
GTID:2168360122480273Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
XML has been widely used in Web service and in various databases since its appearance. It can be an important data format processed in program. This paper describes the data format inter-conversion between various databases and how to do XML data binding in C++ program. Thus embodies the function of the XML as a universal data inter-conversion format. There are three methods to access XML documents, tree-structure in DOM, stream-model in SAX, and XML data binding. It must probe deeply into XML text nodes when the first two methods are used and thus is a big trouble exchanging huge data among XML documents and applications. Now the data binding method specially used to exchange huge data has been implemented in Java. The valid XML document has been bound to C++ structure with a new method of the structure-like space that is created from the base of the XML schema describing structure. The direct conversion between structure object and the XML document through calling the general interface functions of marshalling and unmarshalling in C++ program. The binding method not only lowers the cost of C++ development and improves the efficiency, but also is convenient for software maintenance. Reading the named records from database tables under the condition of not knowing the reference and storing them in an XML document and storing the XML document in different tables in special way has been implemented.
Keywords/Search Tags:XML Document, XML Schema, XML Data Binding, Marshal, Unmarshal
PDF Full Text Request
Related items