[go: up one dir, main page]

CN104112006A - XML (extensible markup language)-based network data transmission method - Google Patents

XML (extensible markup language)-based network data transmission method Download PDF

Info

Publication number
CN104112006A
CN104112006A CN201410337734.9A CN201410337734A CN104112006A CN 104112006 A CN104112006 A CN 104112006A CN 201410337734 A CN201410337734 A CN 201410337734A CN 104112006 A CN104112006 A CN 104112006A
Authority
CN
China
Prior art keywords
data
xml
data file
description information
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410337734.9A
Other languages
Chinese (zh)
Inventor
汪祖民
王阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian University
Original Assignee
Dalian University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian University filed Critical Dalian University
Priority to CN201410337734.9A priority Critical patent/CN104112006A/en
Publication of CN104112006A publication Critical patent/CN104112006A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an XML (extensible markup language)-based network data transmission optimizing method. The XML-based network data transmission method includes the steps: a transmitter selects an XML data file partition method; the transmitter decomposes an XML data file into changed data objects and unchanged data objects according to the partition method; the transmitter computes an associated description information multi-branch tree of to-be-transmitted data; the transmitter transmits a changed data object queue and the associated description information multi-branch tree to a receiver; the receiver updates an original data object set by the aid of the changed data objects according to associated description information; the receiver generates a new XML data file according to the associated description information and the updated data object set. By the XML-based network data transmission method, network bandwidth occupancy is reduced and transmission efficiency is improved.

Description

Network data transmission method based on XML
Technical field
The present invention relates to computer realm, relate in particular to a kind of network data transmission method based on XML.
Background technology
At present, extend markup language (Extensible Markup Language, XML) with respect to HTML (Hypertext Markup Language) (HyperText Markup language, HTML), be standard generalized markup language (Standard Generalized Markup language, SGML) a kind of file layout deriving, XML has abandoned the complicated shortcoming of SGML, the advantage of scalability structure and verification of having inherited is compared with html language, and advantage mainly contains following several respects:
1, plain text, has structurized universal data format.XML is used tree directory structure form, can self-defining word tag and designed element between relation, it is a static text just, almost any instrument can create and edit XML, uses simple.What support XML use is open, non-proprietary format, allows the different majors exploitation markup language relevant with own specific area, is not subject to the restriction of the intellecture properties such as copyright, patent, secret of the trade.The opening of XML has determined that it can become the medium exchanging between Heterogeneous systems, as long as each system is equipped with XML analytical tool, just can understand the information that YiXMLWei intermediary transmits by other system and be used, and need not consider that the other side's information format completes cross-platform exchanging with using special software.
2, XML adopts structurized mode data of description itself, with CSS Extensible Stylesheet Language (XSL) (Extensible Stylesheet Language, XSL) and extensible stylesheet table code-switching (Extensible Stylesheet Language Transformation, XSLT) control the demonstration of data, support user to show data with abundant pattern.
3, use XML the data from different pieces of information source can be carried out to sending and receiving with XML consolidation form, take over party, according to the Schema of XML data, can use local software data are resolved and further process.The DOM model of XML document allows to process the data in document with script or other programming languages, makes data-switching transmission have dirigibility.
But, in actual engineering industry field, bring sometimes efficiency.Because the singularity of the integrality of XML file and industry data may be accompanied by the transmission of a large amount of " gibberish " when transmission XML formatted data.For example, in the e-commerce system of a C/S framework, when user is when client is revised a XML data file, when need to upload onto the server and do corresponding renewal by other user of server notification.If XML data file overall transfer, no matter client user revises how many contents, all need whole file to upload onto the server and by server forwards to other client.This often not only affects transfer efficiency, and can waste many resources.Because it is often very low that the data volume of revising accounts for the ratio of overall data amount, so cause the transmission that repeats of a large amount of unmodified data.This is the common problem that engineering field utilizes the exchange of XML file data to exist.Particularly when file is large, user's frequent operation and need synchronously while upgrading a large number of users, this problem is just very outstanding, even can affect the practicality of system.
Because above-mentioned defect, the design people, actively research and innovation in addition, to founding a kind of network data transmission method based on XML of new structure, makes it have more the value in industry.
Summary of the invention
For solving the problems of the technologies described above, the object of the present invention is to provide a kind of network data transmission optimization method based on extending mark language (XML), to reduce taking and improving transfer efficiency of the network bandwidth.
Network data transmission method based on XML of the present invention, comprising:
Dispensing device is selected the division methods of XML data file;
Dispensing device, according to selected division methods, is decomposed into XML data file to change data object and do not change data object;
Dispensing device calculates the associated descriptor multiway tree of data to be transmitted;
Dispensing device has changed data object queue and has sent to receiving trap with described associated descriptor multiway tree described;
Receiving trap is according to described associated descriptor, and having changed data object described in utilization upgrades original data object set;
The set of data objects of receiving trap according to described associated descriptor and after upgrading, synthetic new XML data file.
Further, select the is olation of XML data file at described dispensing device before, also comprise: dispensing device calculates the effective ratio of data of XML data file, if the effective ratio of data is during higher than threshold value, directly transmit whole data file, otherwise dispensing device is selected the is olation of XML data file.
Further, division methods has comprised is olation and has decomposed granularity, and described decomposition granularity has comprised take industry data model standard XML Schema or DTD (Document Type Definition) DTD document are provided is basic decomposition granularity.
By such scheme, the present invention at least has the following advantages:
Rely on industry data model, according to domain knowledge, with XML standard, XML data file being decomposed into one group of relevant data object of logic transmits, reducing the transmission quantity of gibberish, thereby improve transmitted data on network efficiency, is a kind of simple, practical optimisation technique.The particularly many and typical project application that Update Table amount is less of, interaction times large for transmitted data amount,
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, below with preferred embodiment of the present invention and coordinate accompanying drawing to be described in detail as follows.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the present invention is based on the network data transmission method of XML.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used for illustrating the present invention, but are not used for limiting the scope of the invention.
In paper the present invention once, use the concept of several necessity.
Effectively transmission data refer to the XML element that must transmit when XML data file is carried out network data exchange, comprise label, tag attributes and element value.
Invalid transmission data refer to when XML data file is carried out network data exchange needn't transmit the XML element of but carrying on as before because other is former and must transmit, and comprises label, tag attributes and element value.
The data effective ratio of XML industry data transmission is: De=effectively transmits the volume of volume/XML data file of data.
The invalid ratio of data of XML industry data transmission is: volume=1-data effective ratio of volume/XML data file of the invalid transmission data of Di=.
The invalid ratio of data effective ratio and data has reflected the intensity of variation of XML data file.Data effective ratio is lower, shows that the relatively whole file volume of data variation is fewer.If do not adopt data transmission method of the present invention, the gibberish ratio of transmission is higher.
The present invention mainly adopts XML as user's data interaction format standard, can make full use of like this ease for use and the versatility of XML.When user revises XML data and need to be sent to other nodes when keeping consistency, directly do not transmit whole XML data file, but first with reference to domain knowledge and XML standard, with industry mathematical logic, be associated as foundation, XML data file is resolved into the set of data objects that granularity is less.Then determine the coverage of revising, data object is divided into and changes data object queue and do not change data object queue., to other network nodes, send and changed data object queue.Other nodes have changed after data object queue in reception, replace the appropriate section in original data object set.Again the set of data objects after upgrading is synthesized to XML file, and displaying is by giving user.
Shown in Figure 1, a kind of network data transmission method based on XML, comprising:
Step 101: dispensing device calculates the effective ratio of data of XML data file, if the effective ratio of data during higher than threshold value, the direct whole data file of transmission, otherwise execution following steps step 102 is to step 107.
Can set a threshold value, if the value of data effective ratio is higher than this threshold value, represent that this data validity of this document is higher, do not need network data transmission method of the present invention to transmit, also can high efficiencyly transmit, if the value of data effective ratio is during lower than this threshold value, the data validity that represents this document is lower, data ineffectivity is relatively done, if still adopt traditional data transmission method, the efficiency of transmission will be very low, and therefore value and the threshold value by data effective ratio determines whether to adopt network data transmission method of the present invention.
Step 102: dispensing device is selected the division methods of XML data file.
Division methods has comprised is olation and decomposition granularity,
Although revised context that can not predictive user, if by association closely, the content resolution easily simultaneously revised in same data object, can reduce as much as possible to change quantity and the volume of data object queue.
In decomposable process, decomposing granularity should not be too small or excessive.Decompose granularity too large, lose optimization meaning, but decompose the too little efficiency that also can affect transmission of granularity.First, XML data file is decomposed and synthesized all needs extra time, the less spended time of granularity is more, secondly, after being decomposed, XML data file must need additional information, with the mapping relations between record data object and XML file and data object queuing message, the less additional information of granularity is more.
Consider industry characteristic, it is basis that decomposition granularity of the present invention can be take XML Schema or DTD (Document Type Definition) (Document Type Definition, the DTD) document that industry data model standard provides.Determine while decomposing granularity, should consider concrete data and use the many factors such as pattern, data modification amount.
Step 103: dispensing device is according to the rule of selected division methods, is decomposed into one group XML data file and has changed data object and one group and do not change data object.
Step 104: dispensing device calculates the associated descriptor multiway tree of data to be transmitted.
Step 105: dispensing device sends to receiving trap by changing data object queue with associated descriptor multiway tree.
Step 106: receiving trap, according to associated descriptor, utilizes and changed the set of data object renewal original data object.
Step 107: the set of data objects of receiving trap according to associated descriptor and after upgrading, synthetic new XML data file.
Rely on industry data model, according to domain knowledge, with XML standard, XML data file being decomposed into one group of relevant data object of logic transmits, reducing the transmission quantity of gibberish, thereby improve transmitted data on network efficiency, is a kind of simple, practical optimisation technique.The particularly many and typical project application that Update Table amount is less of, interaction times large for transmitted data amount,
The above is only the preferred embodiment of the present invention; be not limited to the present invention; should be understood that; for those skilled in the art; do not departing under the prerequisite of the technology of the present invention principle; can also make some improvement and modification, these improve and modification also should be considered as protection scope of the present invention.

Claims (3)

1.一种基于XML的网络数据传输方法,其特征在于,包括:1. A network data transmission method based on XML, characterized in that, comprising: 发送装置选择XML数据文件的划分方法;The sending device selects the division method of the XML data file; 发送装置根据所选划分方法,将XML数据文件分解为已变更数据对象和未变更数据对象;The sending device decomposes the XML data file into changed data objects and unchanged data objects according to the selected division method; 发送装置计算待传输数据的关联描述信息多叉树;The sending device calculates the associated description information multi-tree of the data to be transmitted; 发送装置将所述已变更数据对象队列和所述关联描述信息多叉树发送到接收装置;The sending device sends the changed data object queue and the associated description information multi-tree to the receiving device; 接收装置根据所述关联描述信息,利用所述已变更数据对象更新原始数据对象集合;The receiving device uses the changed data object to update the original data object set according to the association description information; 接收装置根据所述关联描述信息和更新后的数据对象集合,合成新的XML数据文件。The receiving device synthesizes a new XML data file according to the association description information and the updated data object set. 2.根据权利要求1所述的基于XML的网络数据传输方法,其特征在于,在所述发送装置选择XML数据文件的分解方式之前,还包括:2. The XML-based network data transmission method according to claim 1, wherein, before the sending device selects the decomposition mode of the XML data file, it also includes: 发送装置计算XML数据文件的数据有效比值,如果数据有效比值高于阈值时,则直接传输整个数据文件,否则发送装置选择XML数据文件的分解方式。The sending device calculates the valid data ratio of the XML data file, and if the valid data ratio is higher than the threshold value, directly transmits the entire data file; otherwise, the sending device selects the decomposition method of the XML data file. 3.根据权利要求1所述的基于XML的网络数据传输方法,其特征在于,所述划分方法包含了分解方式和分解粒度,所述分解粒度包含了以行业数据模型标准提供XML Schema或文档类型定义DTD文档为基础的分解粒度。3. The XML-based network data transmission method according to claim 1, wherein the division method includes a decomposition method and a decomposition granularity, and the decomposition granularity includes providing XML Schema or document type with industry data model standards Defines the granularity of decomposition based on DTD documents.
CN201410337734.9A 2014-07-15 2014-07-15 XML (extensible markup language)-based network data transmission method Pending CN104112006A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410337734.9A CN104112006A (en) 2014-07-15 2014-07-15 XML (extensible markup language)-based network data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410337734.9A CN104112006A (en) 2014-07-15 2014-07-15 XML (extensible markup language)-based network data transmission method

Publications (1)

Publication Number Publication Date
CN104112006A true CN104112006A (en) 2014-10-22

Family

ID=51708797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410337734.9A Pending CN104112006A (en) 2014-07-15 2014-07-15 XML (extensible markup language)-based network data transmission method

Country Status (1)

Country Link
CN (1) CN104112006A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868364A (en) * 2016-03-29 2016-08-17 中国电子科技集团公司第二十八研究所 Structuralized data representation method based on byte stream

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726309A (en) * 2009-12-18 2010-06-09 吉林大学 Navigation electronic map dynamic topology rebuilding system method based on road data increment updating
US20130318568A1 (en) * 2008-10-21 2013-11-28 Lookout Inc. Assessing a data object based on application data associated with the data object

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130318568A1 (en) * 2008-10-21 2013-11-28 Lookout Inc. Assessing a data object based on application data associated with the data object
CN101726309A (en) * 2009-12-18 2010-06-09 吉林大学 Navigation electronic map dynamic topology rebuilding system method based on road data increment updating

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孟彦: "面向Web地图服务的数据一致性维护技术的研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868364A (en) * 2016-03-29 2016-08-17 中国电子科技集团公司第二十八研究所 Structuralized data representation method based on byte stream
CN105868364B (en) * 2016-03-29 2020-06-12 中国电子科技集团公司第二十八研究所 Byte stream-based structured data representation method

Similar Documents

Publication Publication Date Title
CN102185901B (en) Client message conversion method
US7051084B1 (en) Methods and apparatus for regenerating and transmitting a partial page
CN101826085B (en) AJAX-based method for importing/exporting large file into/from web page on line
CN100433013C (en) Method and system for demonstrating data by tree-mode structure
US20080163193A1 (en) Methods and Apparatus for Incorporating a Partial Page on a Client
US20100131585A1 (en) Displaying information in a client/server system
CN103631578B (en) Method for exhibiting data in a kind of distribution automation system
CN102124481A (en) Embedding macros in web pages with advertisements
US20150067037A1 (en) Communication apparatus and communication method
Dunfey et al. Towards an open architecture for vector GIS
CN103108035A (en) Application localization method and device based on web-based operating system (WEBOS)
US20070168868A1 (en) Method and system for integrating calculation and presentation technologies
US20210110105A1 (en) System for fileless information management
CN102023847A (en) Method for realizing push-mode multisystem synchronous data entry based on IE browser based
CN105069116A (en) Method and system for converting json string into array
AU2021201489B2 (en) System and Process for generating an internet application
US20090265615A1 (en) Data processing server and data processing method
CN101996362A (en) Real-time collaborative asset management for computer graphics
US8762398B2 (en) Method of integrating data of XML document with database on web
CN103593345A (en) Webpage flow chart editing method and system
CN104112006A (en) XML (extensible markup language)-based network data transmission method
CN103914293A (en) Page generation method and server
Zhang et al. An interoperable and service-oriented approach for real-time environmental simulation by coupling OGC WPS and SensorThings API
CN104536751A (en) Webpage source code migrating method and device
CN103838596A (en) Formatted file generation system, device and method for data processing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141022