CN101656708A - Method and device for sending and receiving data, and method and system for data transmission - Google Patents

Method and device for sending and receiving data, and method and system for data transmission Download PDF

Info

Publication number
CN101656708A
CN101656708A CN200810118535A CN200810118535A CN101656708A CN 101656708 A CN101656708 A CN 101656708A CN 200810118535 A CN200810118535 A CN 200810118535A CN 200810118535 A CN200810118535 A CN 200810118535A CN 101656708 A CN101656708 A CN 101656708A
Authority
CN
China
Prior art keywords
data
symbol logo
defined rule
name
control
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
CN200810118535A
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.)
Autonavi Software Co Ltd
Original Assignee
Autonavi Software Co Ltd
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 Autonavi Software Co Ltd filed Critical Autonavi Software Co Ltd
Priority to CN200810118535A priority Critical patent/CN101656708A/en
Publication of CN101656708A publication Critical patent/CN101656708A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method and a device for sending and receiving data, and a method and a system for data transmission, which can solve the problem that in the prior art, the data transmission or the data storing process uses a large amount of data to represent the same amount of information. The method for sending the data comprises the following steps: converting one of or any combination of the following factors of an extensible markup language into symbol marks according to a first scheduled rule: label names, attribute names and control names; and sending the symbol marks. The method for receiving the data comprises the following steps: receiving the symbol marks; and resolving the symbol marks according to a second scheduled rule so as to obtain one of or anycombination of the following factors: the label names, attribute data or control data. The embodiment of the invention represents the label names, the attribute names and the control names in an XML standard format by using the symbol marks and reduces the data volume of files, thereby accelerating the transmission speed of the files of the XML and saving the storage space.

Description

Data method of sending and receiving and device, data transmission method and system
Technical field
The present invention relates to a kind of communication technology, relate in particular to a kind of data method of sending and receiving and device, data transmission method and system.
Background technology
XML (Extensible Markup Language, extensible markup language/extend markup language/extensible indicating language) is a kind of markup language.Put mark and refer to computer information symbol to understand,, can handle the data that comprise various information between the computer by this kind symbol.Because the XML document presentation is directly perceived, has professional platform independence, so use very extensive.
Because expression intuitive, ease for use and the professional platform independence of XML make the application of XML mainly concentrate in storage data or the swap data field.Fig. 1 shows data transmission procedure, in step 11, generates the XML file.In step 12, with text mode transmission XML file.In step 13, receive described XML file.In step 14, preserve the XML file.
Yet the present inventor finds, in above-mentioned data transmission procedure, adopts the standard XML form to generate the XML file.In the XML file, use the abbreviation of English word or English word to represent bookmark name in the XML file, Property Name or control title, described bookmark name, Property Name or control title account for very big proportion in the XML file.In addition, causing one of slow key factor of data transmission bauds under the narrower wireless application scene of bandwidth is exactly that transmitted data amount is big, therefore, be badly in need of a kind of under the situation of identical information amount the little technical measures of transmitted data amount.
Summary of the invention
Embodiments of the invention provide a kind of data method of sending and receiving and device, data transmission method and system, can solve the problem of showing the identical information amount in transfer of data in the prior art or the storing process with the larger data scale.
Embodiments of the invention provide a kind of data transmission method for uplink, comprising:
By first pre-defined rule following factors of extend markup language one of them and combination in any are converted to symbol logo: bookmark name, Property Name, control title;
Send described symbol logo.
Embodiments of the invention also provide a kind of data receive method, comprising:
The receiving symbol sign;
Resolve symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data or control data.
Embodiments of the invention also provide a kind of data transmission method, comprising:
By first pre-defined rule following factors of extend markup language one of them and combination in any are converted to symbol logo: bookmark name, Property Name, control title;
Send described symbol logo data;
Receive described symbol logo data;
Resolve symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data, control data.
Embodiments of the invention also provide a kind of data sending device, comprising:
Converting unit is used for by first pre-defined rule following factors of extend markup language one of them and combination in any being converted to symbol logo: bookmark name, Property Name, control title;
Transmitting element is used to send described symbol logo.
Embodiments of the invention also provide a kind of data sending device, comprising:
Receiving element is used for the receiving symbol sign;
Resolution unit is used for resolving symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data, control data.
Embodiments of the invention also provide a kind of data transmission system, comprising:
Data sending device is used for by first pre-defined rule following factors of extend markup language one of them and combination in any being converted to symbol logo: bookmark name, Property Name, control title, and send described symbol logo;
Data sink is used for receiving symbol sign, and resolves symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data, control data.
Embodiments of the invention also provide a kind of date storage method, comprising:
By first pre-defined rule following factors of extend markup language one of them and combination in any are converted to symbol logo: bookmark name, Property Name, control title;
Store described symbol logo.
Embodiments of the invention also provide a kind of data storage device, comprising:
Converting unit is used for by first pre-defined rule following factors of extend markup language one of them and combination in any being converted to symbol logo: bookmark name, Property Name, control title;
Memory cell is used to store described symbol logo.
Embodiments of the invention have reduced the data volume of file by the bookmark name in the XML reference format, Property Name and control title are represented with symbol logo, thereby have accelerated the file transfer speed of XML and saved memory space.
Description of drawings
Fig. 1 shows data transmission procedure in the prior art;
Fig. 2 shows the data transmission procedure of the embodiment of the invention one;
Fig. 3 shows the DRP data reception process of the embodiment of the invention two;
Fig. 4 shows the data transmission system of the embodiment of the invention four.
Embodiment
Understand and realization the present invention the existing embodiments of the invention of describing in conjunction with the accompanying drawings for the ease of persons skilled in the art.
Embodiment one
Present embodiment provides a kind of data transmission method for uplink, as shown in Figure 2, comprises the steps:
Step 21, the following factors of XML one of them and combination in any are converted to symbol logo: bookmark name, Property Name, control title by first pre-defined rule.
Described first pre-defined rule is the rule that the following factors of XML one of them and combination in any is converted to symbol logo: bookmark name, Property Name, control title.First pre-defined rule is specially: the bookmark name of XML is converted to the sign indicating number sign by predetermined corresponding relation, Property Name and/or the control title of XML is converted to bit-identify by predetermined corresponding relation.
Below with one<form〉list is example, describing in detail by first pre-defined rule is the symbol logo process with bookmark name, Property Name or the control name translation of XML.
Suppose<form the XML of list is described as:
<form?action=″bus_process.jsp″id=″form?1″/>
Can to incite somebody to action should<form bookmark name, Property Name or control name translation in the list be symbol logo, and be as shown in table 1.
Table 1
Figure A20081011853500071
Table 1 is the data structure of the form after changing.Each byte of Byte (byte) tabulation registration certificate wherein, back 0~7 each row are represented the corresponding positions of byte respectively.Since the byte label 0,0 be first byte, as shown in Table 1:
0 byte is used for representing the sign indicating number sign of bookmark name, in the present embodiment, the unique corresponding sign indicating number sign of each bookmark name, in table 1, sign indicating number sign 7 is corresponding one by one with bookmark name form.
Two bytes of 1-2 are used for writing down the size of form piece, and its value is 28 in the present embodiment.
An ensuing byte is exactly the bit-identify whether expression comprises Property Name and/or control title.In the present embodiment, the form list only comprises Property Name ID and action.Like this, first of the 3rd byte can represent whether this form comprises ID, can represent whether this form comprises action for the 2nd.Owing to comprise ID and action in this example, therefore first of the 3rd byte is set to effective status, is 1 as value, represents that this form comprises ID.Second is set to effective status, is 1 as value, represents that this form comprises action.In the present embodiment, for convenient expansion later on, the 4th byte is done standby, also can not stay this byte.
If this form comprises ID and action,, add the length information of ID and length information and the content of action: actionlength (2 the byte)+actionurl of the content of ID: idlength (2 byte)+id and action then since 5 bytes.Therefore, the 5th~6 byte value is 5, the length of expression Id content form1, and the 7th~11 byte is respectively ID content form1, i.e. the binary value of these 5 characters of form1.The 12nd~13 byte value is the length information of action: 15, the 14~28 bytes are respectively the content of action: the byte value of these 15 characters of bus_process.jsp.
Therefore, after according to this rule the XML text being changed, its size becomes 28 bytes from 44 bytes, makes data volume significantly reduce, thereby can accelerate the speed that data send in transmission course.
Step 22, send described symbol logo.
Embodiment two
Present embodiment provides a kind of data receive method, as shown in Figure 3, comprises the steps:
Step 31, receiving symbol sign, there are one-to-one relationship in the bookmark name of described symbol logo and XML, attribute data, control data.
Step 32, resolve symbol logo to obtain following factors one of them and combination in any: bookmark name, attribute data, control data according to second pre-defined rule.
Described second pre-defined rule is to resolve symbol logo to obtain the rule of bookmark name, attribute data or control data.Particularly, at first resolve symbol logo, and then resolve symbol logo to obtain Property Name and/or control title according to bookmark name with the acquisition bookmark name.Be that example is introduced the process of symbol logo with acquisition bookmark name, attribute data or control data of resolving in detail with the form label below.
Resolving symbol logo specifically comprises to obtain bookmark name: obtain the sign indicating number sign according to symbol logo, promptly obtain the value of 0 byte of data, this value is the value of sign indicating number sign, value according to 0 byte obtains bookmark name, for example, if this value equals 7, then bookmark name is form, and the data type of this reception is the form data type; If be the sign indicating number sign of other values, then be the data type of corresponding other bookmark name; If its value is outside the data type span, then data are invalid, receive data again.
Resolving symbol logo specifically comprises to obtain attribute data and/or control data: obtain bit-identify according to symbol logo, that is, read the byte label and be 3 byte, obtain its value of the 1st and the 2nd.Determine whether to comprise the attribute data corresponding and/or identify corresponding control data according to the bit-identify that obtains, that is,, represent that then form comprises ID number, otherwise do not comprise if the 1st value is effectively with control bit with the attribute bit sign.If the 2nd value is effectively, shows that then form comprises the action action, otherwise do not comprise.
If form comprises ID number, then since 5 bytes, read the value m of these two bytes of 5-6, promptly the m byte since 7 bytes is the data of ID.If form comprises action action, run through the ID data of m byte after, read the value n of two bytes subsequently, be that these two byte n subsequently bytes are data of action, read the data of action, promptly obtain the complete data of form, finish the parsing of data.
The 3rd embodiment
Present embodiment openly sends out data transmission method a kind of, comprises the steps:
By first pre-defined rule following factors of extend markup language one of them and combination in any are converted to symbol logo: bookmark name, Property Name, control title;
Send described symbol logo;
Receive described symbol logo;
Resolve described symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data, control data.
By above-mentioned steps as can be known, data transmission procedure is the synthetic of data transmission procedure and DRP data reception process, therefore, for avoiding giving unnecessary details, no longer describes at this.Wherein, data transmission procedure can be referring to the description of embodiment one, and DRP data reception process can be referring to the description of embodiment two.
Embodiment four
As shown in Figure 4, present embodiment discloses a kind of data transmission system, comprising: data sending device and data sink.
Described data sending device is used for by first pre-defined rule following factors of extend markup language one of them and combination in any being converted to symbol logo: bookmark name, Property Name, control title, and send described symbol logo.Described data sending device comprises: converting unit is used for by first pre-defined rule following factors of extend markup language one of them and combination in any being converted to symbol logo: bookmark name, Property Name, control title; Transmitting element is used to send described symbol logo.
Described data sink is used for receiving symbol sign, and resolves symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data, control data.Described data sending device comprises: receiving element is used for the receiving symbol sign; Resolution unit is used for resolving symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data, control data.
Data sending device of the present invention can be the data processing gateway on the server.Gateway is analyzed the content that comprises earlier after receiving initial data, and according to the description of embodiment one data is changed and sent.
Embodiment five
Present embodiment discloses a kind of date storage method, comprising: by first pre-defined rule following factors of extend markup language one of them and combination in any are converted to symbol logo: bookmark name, Property Name, control title; Store described symbol logo.By first pre-defined rule following factors of extend markup language one of them and combination in any being converted to the process of symbol logo can be referring to the description of embodiment one.
Embodiment six
Present embodiment discloses a kind of data storage device, comprising: converting unit is used for by first pre-defined rule following factors of extend markup language one of them and combination in any being converted to symbol logo: bookmark name, Property Name, control title; Memory cell is used to store described symbol logo.By first pre-defined rule following factors of extend markup language one of them and combination in any being converted to the process of symbol logo can be referring to the description of embodiment one.
It should be noted that in the above-described embodiments, bookmark name is converted to the sign indicating number sign, is bit-identify with Property Name and control name translation, to save the data volume of XML file.Also can adopt alternate manner to realize the present invention, as bookmark name is converted to bit-identify, be the sign indicating number sign with Property Name and control name translation perhaps, can reach the purpose of the data volume of saving the XML file equally.
According to the embodiment of the invention because the bookmark name in the XML reference format, Property Name and control title are represented with symbol logo, reduced the data volume of file, accelerated XML file transmission speed and saved memory space.
Though described the present invention by embodiment, those of ordinary skills know, without departing from the spirit and substance in the present invention, just can make the present invention that many distortion and variation are arranged, and scope of the present invention is limited to the appended claims.

Claims (12)

1, a kind of data transmission method for uplink is characterized in that, comprising:
By first pre-defined rule following factors of extend markup language one of them and combination in any are converted to symbol logo: bookmark name, Property Name, control title;
Send described symbol logo.
2, method according to claim 1, it is characterized in that, describedly by first pre-defined rule bookmark name of extend markup language is converted to symbol logo and specifically comprises: the bookmark name of extend markup language is converted to the sign indicating number sign by first pre-defined rule.
3, method according to claim 1 and 2, it is characterized in that described is that symbol logo specifically comprises by first pre-defined rule with the Property Name of extend markup language and/or control name translation: is bit-identify by first pre-defined rule with the Property Name and/or the control name translation of extend markup language.
4, a kind of data receive method is characterized in that, comprising:
The receiving symbol sign;
Resolve symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data or control data.
5, method according to claim 4 is characterized in that, describedly resolves symbol logo according to second pre-defined rule and specifically comprises to obtain bookmark name:
Obtain the sign indicating number sign according to symbol logo;
Obtain bookmark name by second pre-defined rule according to the sign indicating number sign that obtains.
6, method according to claim 5 is characterized in that, describedly resolves symbol logo according to second pre-defined rule and specifically comprises to obtain attribute data and/or control data:
Obtain bit-identify according to symbol logo;
Obtain attribute data and/or control data by second pre-defined rule according to the bit-identify that obtains.
7, a kind of data transmission method is characterized in that, comprising:
By first pre-defined rule following factors of extend markup language one of them and combination in any are converted to symbol logo: bookmark name, Property Name, control title;
Send described symbol logo data;
Receive described symbol logo data;
Resolve symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data, control data.
8, a kind of data sending device is characterized in that, comprising:
Converting unit is used for by first pre-defined rule following factors of extend markup language one of them and combination in any being converted to symbol logo: bookmark name, Property Name, control title;
Transmitting element is used to send described symbol logo.
9, a kind of data sending device is characterized in that, comprising:
Receiving element is used for the receiving symbol sign;
Resolution unit is used for resolving symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data, control data.
10, a kind of data transmission system is characterized in that, comprising:
Data sending device is used for by first pre-defined rule following factors of extend markup language one of them and combination in any being converted to symbol logo: bookmark name, Property Name, control title, and send described symbol logo;
Data sink is used for receiving symbol sign, and resolves symbol logo to obtain following factors one of them and combination in any according to second pre-defined rule: bookmark name, attribute data, control data.
11, a kind of date storage method is characterized in that, comprising:
By first pre-defined rule following factors of extend markup language one of them and combination in any are converted to symbol logo: bookmark name, Property Name, control title;
Store described symbol logo.
12, a kind of data storage device is characterized in that, comprising:
Converting unit is used for by first pre-defined rule following factors of extend markup language one of them and combination in any being converted to symbol logo: bookmark name, Property Name, control title;
Memory cell is used to store described symbol logo.
CN200810118535A 2008-08-18 2008-08-18 Method and device for sending and receiving data, and method and system for data transmission Pending CN101656708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810118535A CN101656708A (en) 2008-08-18 2008-08-18 Method and device for sending and receiving data, and method and system for data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810118535A CN101656708A (en) 2008-08-18 2008-08-18 Method and device for sending and receiving data, and method and system for data transmission

Publications (1)

Publication Number Publication Date
CN101656708A true CN101656708A (en) 2010-02-24

Family

ID=41710802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810118535A Pending CN101656708A (en) 2008-08-18 2008-08-18 Method and device for sending and receiving data, and method and system for data transmission

Country Status (1)

Country Link
CN (1) CN101656708A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480335A (en) * 2010-11-30 2012-05-30 金蝶软件(中国)有限公司 Method and system for transmitting business data
CN102541926A (en) * 2010-12-30 2012-07-04 北京新媒传信科技有限公司 Data exchange processing method, equipment and system
US9891931B2 (en) 2010-06-15 2018-02-13 Microsoft Technology Licensing, Llc Techniques for efficient remote presentation session connectivity and routing
CN108228895A (en) * 2018-02-05 2018-06-29 广州中元软件有限公司 Data processing method based on spcial character transmission data with storing data extensible markup
CN109413077A (en) * 2018-11-07 2019-03-01 北京奇艺世纪科技有限公司 A kind of receiving/transmission method, device and the electronic equipment of JSON message data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001098927A2 (en) * 2000-06-21 2001-12-27 Microsoft Corporation Authoring arbitrary xml documents using dhtml and xslt
CN101222476A (en) * 2007-01-08 2008-07-16 华为技术有限公司 Expandable markup language file editor, file transferring method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001098927A2 (en) * 2000-06-21 2001-12-27 Microsoft Corporation Authoring arbitrary xml documents using dhtml and xslt
CN101222476A (en) * 2007-01-08 2008-07-16 华为技术有限公司 Expandable markup language file editor, file transferring method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9891931B2 (en) 2010-06-15 2018-02-13 Microsoft Technology Licensing, Llc Techniques for efficient remote presentation session connectivity and routing
CN102480335A (en) * 2010-11-30 2012-05-30 金蝶软件(中国)有限公司 Method and system for transmitting business data
CN102480335B (en) * 2010-11-30 2015-08-05 金蝶软件(中国)有限公司 A kind of sending method of business datum and system
CN102541926A (en) * 2010-12-30 2012-07-04 北京新媒传信科技有限公司 Data exchange processing method, equipment and system
CN102541926B (en) * 2010-12-30 2014-04-30 北京新媒传信科技有限公司 Data exchange processing method, equipment and system
CN108228895A (en) * 2018-02-05 2018-06-29 广州中元软件有限公司 Data processing method based on spcial character transmission data with storing data extensible markup
CN109413077A (en) * 2018-11-07 2019-03-01 北京奇艺世纪科技有限公司 A kind of receiving/transmission method, device and the electronic equipment of JSON message data
CN109413077B (en) * 2018-11-07 2021-05-14 北京奇艺世纪科技有限公司 JSON message data receiving and sending method and device and electronic equipment

Similar Documents

Publication Publication Date Title
RU2488228C2 (en) Web format-based wireless communication
CN110083805A (en) A kind of method and system that Word file is converted to EPUB file
EP1820122A1 (en) Form related data reduction
CN101346689A (en) A compressed schema representation object and method for metadata processing
CN101075910B (en) Method and device for quickly registering
US8332539B2 (en) Binary data serialization system using machine dependant data alignment
CN101656708A (en) Method and device for sending and receiving data, and method and system for data transmission
KR20000028589A (en) Method of rendering documents by server
CN103389969A (en) Method, device and system for previewing PDF (portable document format) file on mobile terminal
CN101334872B (en) Electronic government documents exchanging method based on web service
CN101430684A (en) Method and apparatus for mutual conversion between Chinese work office software document and documents with other format
CN102831190A (en) Method for browsing current-mode logic (CML) files on low-end equipment
CN102541926B (en) Data exchange processing method, equipment and system
CN100446580C (en) Method for intensifying short message business
CN101272543A (en) Wireless data transmission method
KR100440045B1 (en) A method and system for chatting service providing realtime tag analysis
CN101615174B (en) Method for converting documents with different formats based on XML
CN114282519A (en) CAN data analysis method and device
CN116366701A (en) Digital building management control system and method
EP1768333A4 (en) Message transfer system and message transfer method
CN107463536A (en) A kind of method and system for realizing document in online preview server in Android device
CN101997913A (en) Apparatus and method of data communication between web applications
CN101799890B (en) Certificate data processing method and system
CN105024923B (en) The method and device that message category based on XMPP extension message is realized
CN101686568B (en) Methods and terminals for transmitting and displaying text information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Chen Tao

Inventor before: Zhang Chong

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: ZHANG CHONG TO: CHEN TAO

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100224