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
dispensing device
data file
transmission method
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]

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. the network data transmission method based on XML, is characterized in that, 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.
2. the network data transmission method based on XML according to claim 1, is characterized in that, before selecting the is olation of XML data file, also comprises at described dispensing device:
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 the is olation of dispensing device selection XML data file.
3. the network data transmission method based on XML according to claim 1, it is characterized in that, described 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.
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
US7051084B1 (en) Methods and apparatus for regenerating and transmitting a partial page
US7346842B1 (en) Methods and apparatus for incorporating a partial page on a client
CN101826085B (en) AJAX-based method for importing/exporting large file into/from web page on line
CN102882974B (en) Method for saving website access resource by website identification version number
WO2009043035A4 (en) Network operating system
US20100131585A1 (en) Displaying information in a client/server system
CN1983257A (en) Method and system for demonstrating data by tree-mode structure
CN101098248A (en) Method and system for implementing universal network management based on configuration describing document
CN104572084B (en) User interface generation and data distributing method, device in card business
US20150067037A1 (en) Communication apparatus and communication method
CN103383687A (en) Page processing method and device
CN101500002A (en) Fusion publishing method and apparatus oriented to Web content
CN103108035A (en) Application localization method and device based on web-based operating system (WEBOS)
CN102023847A (en) Method for realizing push-mode multisystem synchronous data entry based on IE browser based
US20020184269A1 (en) Document management systems for and methods of sharing documents
US20080215957A1 (en) Systems and methods for generating technical documentation from enterprise service-oriented architecture content
CA2846581A1 (en) Data infrastructure for providing interconnectivity between platforms, devices and operating systems
EP1987446A2 (en) Method and system for integrating calculation and presentation technologies
US9626346B2 (en) Method of implementing structured and non-structured data in an XML document
US20090265615A1 (en) Data processing server and data processing method
CN105069116A (en) Method and system for converting json string into array
CN102497422A (en) Live web casting method and live web casting system
CN104112006A (en) XML (extensible markup language)-based network data transmission method
CN103020033A (en) Electronic spreadsheet system supporting off-line use, construction method and electronic spreadsheet
CN101587470A (en) The edit methods of document and device

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

Application publication date: 20141022

RJ01 Rejection of invention patent application after publication