Supercharge Your Innovation With Domain-Expert AI Agents!

Data binding application program interface creation method based on XML mode

A technology of application programming interface and XML mode, which is applied in special data processing applications, program control devices, electronic digital data processing, etc., and can solve the problems that applications cannot be used directly, cannot be fully supported, and XMLBean cannot be competent.

Inactive Publication Date: 2010-06-09
TSINGHUA UNIV
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But when the Schema document that needs data binding contains complex features (such as extensions, restrictions, substitution groups, etc.), most of the existing open source technologies cannot fully support it.
As far as the XMLBean project supported by the Apache Foundation is concerned, although it can support most complex Schema structures, when using XMLBean for data binding, there is currently no effective method to achieve operations such as adding and modifying methods for generating APIs , which makes XMLBean incapable of generating highly customizable APIs; in addition, XMLBean only supports the generation of APIs under the Java platform, which prevents many applications based on other platforms from being directly used

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data binding application program interface creation method based on XML mode
  • Data binding application program interface creation method based on XML mode
  • Data binding application program interface creation method based on XML mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] The purpose of the present invention is to provide a data binding API method for automatically generating an XML file whose operation conforms to the complex XML schema.

[0073] The idea of ​​the method proposed by the present invention is: first, by analyzing the complex XML schema, obtain the definitions of XML elements (elements) and data types (datatypes), as well as complex relationships between data types such as constraints and extensions; and then According to the obtained schema information, the intermediate configuration file of the API interface is generated; then, for different API target code types, different code generation engines are added, and the final API source code is generated according to the API interface configuration file. Finally, the process of encapsulating and publishing the generated original code through the API encapsulation engine mainly includes adding API generation interfaces based on the Factory design pattern, adding test cases and...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

In the view of complicated XML schema specifications existing in practice, an interface generation method for data binding application program based on XML mode, the invention, provides a method whichis used for automatically generating data binding API for XML files, the operation of which accords with XML Schema specifications. The method is characterized in that based on data binding technology, the method firstly generates a set of interlayer which is unrelated to the type of generated target language, and then type target code required by engine generation is generated by independent code. The text carries out code generation and test according to CNML Schema and CNML manuscript template issued by Xinhua News Agency. The result of experiments shows that the method not only ensures robustness and correctness of API, but also has great flexibility, greatly reduces API maintenance cost owning to change of the schema specifications, keeps basic consistency of multi-lingual API interfaces to reduce training cost and provides stable support for an application system based on API.

Description

technical field [0001] The invention belongs to the field of xml data binding or code automatic generation. Background technique [0002] Data binding technology provides a simple and direct method to efficiently use various unstructured data sources such as XML and Database in Java, C++ and other platform applications. Through data binding, the application program can ignore the constraints of factors such as the actual structure of the XML file and the structure of the storage table in the database to a certain extent, and directly use the bound code to access the data content. When reading and writing files, some special types of data (such as numbers and dates) can be converted into types that exist in the programming language instead of being kept in text form, which allows applications to use the data itself more conveniently and effectively. Instead of paying too much attention to the way it is stored and represented. [0003] At present, there are many technical pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44G06F17/22G06F17/30
Inventor 李涓子王峰张鹏李军陈德伟唐杰
Owner TSINGHUA UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More