Parsing method of xml file common parser based on Xpath language

A parsing method and parser technology, applied in the field of java serialization and deserialization, can solve the problems of difficult implementation and high code coupling, and achieve the effects of adapting to business changes, strong code scalability, and improving code reuse.

Inactive Publication Date: 2018-03-06
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] During this period, the xml template and the Java object template are in a corresponding relationship. The change of the xml template can cause the codes of processes (1) and (2) to be modified accordingly. The code coupling is high, and the code may need to be continuously maintained as the business changes.
[0008] Existing parsers can complete the deserialization process of xml language, but as business changes need to filter useless data to reduce data transmission volume and business complexity, it is difficult for existing technologies to achieve

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
  • Parsing method of xml file common parser based on Xpath language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0026] The recognition results generated by AI bill recognition will be returned to the smart financial cloud platform system in xml language mode. The smart financial cloud platform system needs to convert complex xml recognition results into business objects for business processing. In order to adapt to changing business and filter useful Processing results, this embodiment is based on the intelligent financial cloud platform system, and provides a parsing method based on an XPath language-based universal parser for xml files, mainly for solving AI recognition results and communicating with a third-party interface XML language.

[0027] The parsing method of the general parser for xml files based on XPath language, including the following contents:

[0028] Obtain the recognition result through the AI ​​interface;

[0029] Call the universal parser of the xml file to pass in the XPath statement of the recognition result and filtered data and the business template obj...

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 invention discloses a parsing method of an xml file common parser based on an Xpath language, and relates to the technical field of java serialization and deserialization. The method comprises thefollowing steps of obtaining an identification result through an AI interface; calling the xml file common parser to introduce an identification result, XPath sentences for sifting data and businesstemplate objects; using the XPath sentences to directly filter node trees; conducting xml language deserialization, and using the xml file common parser to convert the Xml language into a java business object; completing data encapsulation and making the operation return to a business entity object. After the Xpath is adopted, nodes can be flexibly subjected to condition query like sql sentences,so that the code expansion is higher. The Xpath is combined with a Dom4j technology. The parsing method has the advantages that the code coupling degree is lowered, the code reusability is improved, and the business change can be better adapted to.

Description

technical field [0001] The present invention relates to the technical field of java serialization and deserialization, and more specifically, the embodiment of the present invention relates to a parsing method of a universal parser for xml files based on XPath language. Background technique [0002] Existing parsing techniques usually load DOM information into memory first, and then analyze the DOM structure. Analyzing the structure usually requires loading the entire document and constructing the hierarchy before doing any work. Since it is based on the information hierarchy, DOM is considered to be based on tree or object based. DOM-related operations can only be performed after the tree structure encapsulation is completed. On the other hand, for particularly large documents, parsing and loading the entire document may be slow and resource-intensive, and common techniques cannot flexibly handle the filtering of nodes in the DOM, and only provide simple retrieval function...

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 Applications(China)
IPC IPC(8): G06F9/448G06F8/30G06F8/51
CPCG06F8/37G06F8/51
Inventor 刘东杨睿龙李波高向军
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products