XML Schema file format automatic conversion method and system and related equipment

An automatic conversion and file format technology, applied in the direction of program code conversion, semi-structured data mapping/conversion, special data processing applications, etc., can solve problems such as adding software, increasing project development difficulty and project cycle, and improving programming efficiency Effect

CN112199556APending Publication Date: 2021-01-08LAUNCH TECH CO LTD
4 Cites 3 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2021-01-08

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention provides an XML Schema file format automatic conversion method, an XML Schema file format automatic conversion system and related equipment, which are used for realizing XML Schema file format automatic conversion and improving programming efficiency. The method provided by the embodiment of the invention comprises the following steps: extracting fields and field values of all elements in an XML Schema file to be converted according to the types of the elements, and taking the fields and the field values contained in the same element as a group of associated data; and calling a grammar rule function corresponding to the target programming language, and adding each group of associated data into a preset data structure to generate a target program class conforming to the grammar rule of the target programming language.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present application relates to the technical field of XML Schema file format automatic conversion, in particular to an XML Schema file format automatic conversion method, system and related equipment. Background technique

[0002] XML Schema, also known as XSD (XML Schema Definition), is a recommended standard released by W3C in May 2001, pointing out how to formally describe the elements of an XML document.

[0003] During the programming process, the Schema language code needs to be converted into other types of programming language codes. In the existing solutions, only partial extraction of objects or content in XML Schema can be realized, or after manually understanding the XML Schema object or content, manually convert the code and convert it into code corresponding to other programming languages ​​for other software To identify, edit, design or use.

[0004] The disadvantage of the existing solution is that it completely relies on manual w...

Examples

Embodiment Construction

[0043] The embodiment of the present application provides an XML Schema file format automatic conversion method, system and related equipment, which are used to realize XML Schema file format automatic conversion and improve programming efficiency.

[0044] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0045]The terms "first", "second", "third", "fourth" and the like in the description and claims of the ...