Supercharge Your Innovation With Domain-Expert AI Agents!

XML (extensible markup language) compressing method and device based on flexible-length identification codes

A compression method and identification code technology, applied in code conversion, special data processing applications, instruments, etc., can solve the problem of insufficient representation of format e-books

Inactive Publication Date: 2014-02-26
SHANXI SANHENG AUTOMATION EQUIP +1
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The above method can compress XML documents at high speed, but since the number of bits allocated to element names is only 5 bits, it can only represent 32 element names at most; the number of bits allocated to attribute names is only 6 bits, and it can only represent 64 at most Attribute names, which are far from enough in the representation of layout e-books, because layout e-books often need to represent hundreds of element names and attribute names to represent the geometric layout structure and logical layout structure of documents

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
  • XML (extensible markup language) compressing method and device based on flexible-length identification codes
  • XML (extensible markup language) compressing method and device based on flexible-length identification codes
  • XML (extensible markup language) compressing method and device based on flexible-length identification codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] figure 1 It is a flowchart of an XML compression method based on variable-length identification codes in the present invention, such as figure 1 As shown, a method for compressing XML based on variable-length identification codes includes the following steps:

[0034] Step 101, for each element in the XML document, define a corresponding variable-length identification code in the data dictionary; and for each attribute in the XML document, define a corresponding variable-length identification code in the data dictionary long identifier;

[0035] Step 102, the sender uses the corresponding variable-length identification codes defined in the data dictionary to replace the elements and attributes in the XML document one by one, realize the replacement and compression of the XML document, and generate a compressed XML document;

[0036] Step 103, the sender compresses the compressed XML document and data dictionary using a common compression algorithm such as Flate and LZ...

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 relates to the technical field of data business, in particular to an XML (extensible markup language) compressing method and device. The compressing method uses flexible-length identification codes to replace the elements and attributes in an XML file, and the XML file with large amount of elements and attributes can be compressed efficiently with low load. The method includes: defining one flexible-length identification code, corresponding to each element of the XML file, in a data dictionary; defining one flexible-length identification code, corresponding to each attribute of the XML file, in a data dictionary; by a transmitting party, replacing the elements and attributes in the XML file one by one with the corresponding flexible-length identification codes defined in the data dictionary so as to realize replacement compression of the XML file; by a receiving party, replacing the flexible-length identification codes of the received compressed XML file with the elements and attributes corresponding to the flexible-length identification codes and defined in the data dictionary to realize decompression of the XML file.

Description

technical field [0001] The invention relates to the technical field of data services, in particular to an XML compression method and device. Background technique [0002] Extensible Markup Language (XML, Extensible Markup Language), as a cross-platform standard data exchange format, is widely used in digital book format representation, data exchange and storage, and is currently a powerful tool for processing structured document information. Because XML documents contain a large number of repeated tags and structural information, XML documents contain a large number of repeated tags and structural information, which increases the cost of storage and transmission, and hinders the development of XML applications to a certain extent, especially in This is especially true on mobile devices with limited bandwidth and resources. Therefore, XML files need to be compressed in many applications such as mobile reading of digital books. Although XML documents can be compressed using ...

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): G06F17/30
CPCG06F16/80H03M7/3084
Inventor 龚如宾张炼珠
Owner SHANXI SANHENG AUTOMATION EQUIP
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