Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Extensible Markup Language File Converter and Conversion Method

A technology of extended markup language and converter, which is applied in the field of file conversion to achieve satisfactory operation results, meet data requirements and business requirements, and achieve efficient operation speed

Inactive Publication Date: 2011-11-30
何琦 +1
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Under the Unix platform, object-oriented computer programming languages ​​such as java language already have ready-made converters for converting Flat files into XML files by reading XSD files, but process-oriented computer programming languages ​​such as C language have not yet read XSD files A converter to convert Flat files to XML files

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
  • Extensible Markup Language File Converter and Conversion Method
  • Extensible Markup Language File Converter and Conversion Method
  • Extensible Markup Language File Converter and Conversion Method

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0026] Such as figure 1 , An extensible markup language file converter, including a file dividing device for dividing and naming each record of the Flat file into independent fields according to attributes. A record in the following Flat file: "23020219600111166MRliujiashun", divided into four independent fields PID=23020219600111166, gender=MR, first_name=liu, last_name=jiashun.

[0027] A file parsing device is used to represent the logical structure of each field. The parsing device includes names and corresponding tree structure definitions and levels. The tree structure definitions include root nodes, branch nodes and leaf nodes. The parsing device also includes a value flag indicating whether to fill in the attribute value at the root and branch nodes. The leaf node does not have any subordinate nodes. The branch node belongs to the root node or other branch nodes, and the branch node can have subordinate branch nodes or leaf nodes.

[0028] An example of the analysis devic...

no. 2 example

[0051] Compared with the first embodiment, the parsing device in this embodiment adds a data type mark indicating the data type of the field. Such as:

[0052]

[0053] The second column is the data type tag, Number is a numeric type, Char is a character type, and NULL is an empty type, that is, when the branch node or root node does not fill in the value, it is set to the NULL type.

[0054] The parsing device of the present invention can extend various marks, such as field length, verification rules, and so on.

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

The extensible markup language file converter of the invention relates to file conversion, in particular to a converter for converting a Flat file into an XML file by using a process-oriented computer programming language under a Unix platform and a conversion method thereof. An Extensible Markup Language file converter, comprising a file splitting device for splitting each record of a Flat file into independent fields and naming them according to attributes; a file parsing device for representing the logical structure of each field; a file The mapping device is used to map the results of segmentation and parsing into XML files; the parsing device includes names and corresponding tree structure definitions and levels, and the tree structure definitions include three types: root node, branch node and leaf node ; The mapping device reads the content of the parsing device, and arranges the fields into a target XML file according to the tree structure and hierarchy.

Description

Technical field [0001] The invention relates to file conversion, in particular to converting a Flat file into an XML file using a process-oriented computer programming language under a Unix platform. Background technique [0002] At present, most of the documents in the banking industry are based on the Flat file as the standard for interaction. A Flat file is a file that contains records without a relative structure. This type is usually used to describe text where word processing, other structural characters, or tags have been removed. However, in order to enhance the readability of data, some banks use XML files (XML (Extensible Markup Language) to store data, which puts forward new requirements for data interaction. The traditional conversion method is to use XSD to target XML data The format of the file is defined. XSD (XML Schemas Definition) refers to the XML structure definition, which describes the structure of the XML document. On the Unix platform, there are already o...

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
IPC IPC(8): G06F17/30G06F17/22
Inventor 何琦刘嘉顺
Owner 何琦
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products