CN102306191A - Method for analyzing extensible markup language (XML) message based on embedded platform - Google Patents

Method for analyzing extensible markup language (XML) message based on embedded platform Download PDF

Info

Publication number
CN102306191A
CN102306191A CN201110256472A CN201110256472A CN102306191A CN 102306191 A CN102306191 A CN 102306191A CN 201110256472 A CN201110256472 A CN 201110256472A CN 201110256472 A CN201110256472 A CN 201110256472A CN 102306191 A CN102306191 A CN 102306191A
Authority
CN
China
Prior art keywords
state
current
redirect
character
error
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
CN201110256472A
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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201110256472A priority Critical patent/CN102306191A/en
Publication of CN102306191A publication Critical patent/CN102306191A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention provides a method for analyzing an extensible markup language (XML) message based on an embedded platform, and belongs to the technical field of information processing. The method comprises the following steps of: calculating a jump state according to a character pointed by the current pointer and the current state, judging whether the current state and the jump state accord with a predetermined condition or not, if so, changing the current state into the jump state, and otherwise, reporting an error; further judging whether the current state and the jump state accord with a predetermined format rule, if so, judging whether the current element accords with a predetermined element name, and otherwise, reporting an error; if the current element accords with the predetermined element name, executing the corresponding extraction operation, changing the current state into the jump state, and making the current pointer point the next character; and if the current element does not accord with the predetermined element name, not extracting data, changing the current state into the jump state, making the current pointer point the next character, and repeating the operation until the current pointer points a message trailer to finish analysis. By the method, information saved in an XML format can be well analyzed in embedded equipment with intense software and hardware resources.

Description

XML message parsing method based on embedded platform
Technical field
The present invention relates to technical field of information processing, be specifically related to a kind of analytic method of the XML message based on embedded platform.
Background technology
XML (The Extensible Markup Language; XML (extensible Markup Language)) is a kind of programming language that is independent of platform; Create different software is used on public information form and the shared network the form and the flexible mechanism of data because it provides to have, thereby be particularly suitable on the distributed network of Internet, using.XML is a kind of simple data storage language, can use a series of simple mark data of description, and these marks can use easily mode to set up, and XML simply makes it be easy in Any Application, read and write data.
XML is widely used in network and correlation technique thereof; The present method that the XML message is resolved, that general is XML DOM, XML DOM has defined the standard method of visit and processing XML message; XML DOM is the abbreviation of XML Document Object Model, i.e. XML message object model.When the main frame use method that XMLDOM provided is carried out the parsing of XML message; Need earlier the whole nodes of XML to be scanned; And in host memory, set up complete node tree; By node tree the qualified data in the XML message are searched; It is too much that this method takies the memory source of main frame; Especially when the parsing of XML message is carried out in single-chip microcomputer; As in the smart card to the parsing of XML message; Smart card is because the restriction of volume; The memory source of itself is less; When the method for using XMLDOM was resolved the XML message, if the XML message is excessive, then the internal memory of smart card device burden was excessive.
When the XML message is resolved; Can also adopt the method for object based programming; Use the interface that provides in the object oriented language; Realize the XML resolver through programming, use resolver that the XML message is resolved, but this method is not suitable for embedded environment; Embedded environment can not be supported OO XML analytic method; But because Embedded widespread use, intelligent cipher key equipment USB Key etc. for example, the parsing to the XML message in embedded environment is absolutely necessary.Therefore, seeking a kind of XML analytic method that can be applied to embedded system and can realize saving software and hardware resources is those skilled in the art's urgent problems.
Summary of the invention
The technical matters that the present invention will solve is, a kind of XML message parsing method based on embedded platform is provided, and reduces when resolving embedded system to the requirement of software and hardware resources.
It is following that the present invention solves the problems of the technologies described above the technical scheme of taking:
A kind of XML message parsing method based on embedded platform is characterized in that: may further comprise the steps,
Step 101: init state machine; Said initialization procedure comprises first character that current pointer is pointed to data to be resolved, and current state is changed to initial state, and the redirect state is changed to sky.
Step 102: judge whether current pointer points to the end of data to be resolved, is then to resolve end, otherwise carry out next step; Be specially if current pointer points to character ' 0 ', then resolve and finish.
Step 103: character and the current state pointed to according to current pointer calculate the redirect state;
Step 104: judge whether current state and redirect state meet the condition of making an appointment, then carry out next step if meet, otherwise the end that reports an error;
Step 105: judge whether current state and redirect state meet the extracting rule of making an appointment, be then to operate accordingly to carry out next step again, otherwise directly carry out next step;
Said extracting rule does, if the element in the data to be resolved is unique, and the element value that extraction was write down when then and if only if element head was consistent with the element tail; If it is there is daughter element in the element in the data to be resolved, then current only when the element head is consistent with the element tail, extract the element value that writes down when the daughter element head is consistent with the daughter element tail; If there are a plurality of adjacent daughter elements in the element in the data to be resolved, the element value that extraction was write down when then and if only if all elements head was consistent with the element tail.
Said extracting rule can also for, if the element in the data to be resolved is unique, then and if only if extraction is write down when element head element term consistent with the element tail and element head and element tail meets the element term of making an appointment element value; If there is daughter element in the element in the data to be resolved, then and if only if element head is consistent with the element tail, the daughter element head is consistent with the daughter element tail and the element term of the element term of element head and element tail, daughter element head and the daughter element tail element value that extraction is write down when meeting the element term of making an appointment; If there are a plurality of adjacent daughter elements in the element in the data to be resolved, then and if only if extraction is write down when all elements head element term consistent with the element tail and all elements head and element tail meets the element term of making an appointment element value.
Said execution corresponding operating comprises opening entry, end record and extracts data recorded.
Step 106: current state is changed to said redirect state;
Step 107: current pointer is pointed to character late, return execution in step 102.
Above-mentioned steps 103 is specially, judges earlier to draw current state, and according to current state, corresponding redirect state when preferentially calculating character that current pointer points to, corresponding redirect state when calculating character that current pointer points to again and being other characters for preset key character.Said preset key character comprises ' < ', '! ', '? ', '/' and '>'.
Said character that points to according to current pointer of step 103 and current state calculate the redirect state and specifically may further comprise the steps,
Step 103-1: judging whether current state is initial state, is then
Judge character that current pointer points to whether be ' < ' is that then the redirect state is first initial state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-2: judging whether current state is first initial state, is then
Judge character that current pointer points to whether be ' < ', '>', '! ', in '/' any one, be then to report an error to withdraw from, otherwise, judge the character that current pointer points to be '? ', be that then the redirect state is the heading initial state, otherwise the redirect state is element head statement state;
Otherwise carry out next step;
Step 103-3: judging whether current state is the heading initial state, is then
Judge character that current pointer points to whether be ' < ', '>', '! ', '/', '? ' in any one, be then to report an error to withdraw from, otherwise the redirect state is a heading statement state;
Otherwise carry out next step;
Step 103-4: judge that current state whether for element head statement state, is then
Do you judge that the character that current pointer points to is ' < ' or '? ', be then to report an error to withdraw from, otherwise; Judge whether the character that current pointer points to is '>'; Be that then the redirect state is an element head done state, otherwise, judge character that current pointer points to whether be '! ', be that then the redirect state is the note initial state, otherwise, judge whether the character that current pointer points to is '/', be that then the redirect state is the preparation done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-5: judging whether current state is heading statement state, is then
Judge character that current pointer points to whether be ' < ' or '>' or '! ', be then to report an error to withdraw from, otherwise, judge the character that current pointer points to be '? ', be that then the redirect state is the preparation done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-6: judging whether current state is element head done state, is then
Judge character that current pointer points to whether be '! ' or '>' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is that ' < ' is that then the redirect state is second initial state, otherwise the redirect state is an element value statement state;
Otherwise carry out next step;
Step 103-7: judging whether current state is the note initial state, is then
Judge character that current pointer points to be ' < ' or '>' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge character that current pointer points to whether be '! ', be that then the redirect state is the preparation done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-8: judging whether current state is to prepare done state, is then
Judge character that current pointer points to whether be '! ' or ' < ' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is '>', be that then the redirect state is a done state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-9: judging whether current state is second initial state, is then
Judge character that current pointer points to be ' < ' or '>' or '? ' or '! ', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is '/', is that then the redirect state is the bright state of element coda, otherwise the redirect state is element head statement state;
Otherwise carry out next step;
Step 103-10: judging whether current state is element value statement state, is then
Judge character that current pointer points to whether be '! ' or '>' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is that ' < ' be that then the redirect state is an element tail initial state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-11: judging whether current state is done state, is then
Judge that the character that current pointer points to is '/' or '>' or '? ' or '! ', be then to report an error to withdraw from, otherwise, judge character that current pointer points to whether be ' < ' is that then the redirect state is the 3rd initial state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-12: judging whether current state is element tail initial state, is then
Judge character that current pointer points to be ' < ' or '>' or '? ' or '! ', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is '/', is that then the redirect state is the bright state of element coda, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-13: judging whether current state is the bright state of element coda, is then
Judge that whether character that current pointer points to is ' < ' or '! ' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge that the character that current pointer points to is '>', be that then the redirect state is a done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-14: judging whether current state is the 3rd initial state, is then
Judge that whether character that current pointer points to is ' < ' or '! ' or '? ' or '/>', be then to report an error to withdraw from, otherwise, judge that the character that current pointer points to is '/', be that then the redirect state is the bright state of element coda, otherwise the redirect state is element head statement state;
Withdraw from otherwise report an error.
The priority execution sequence of above-mentioned steps 103-1 to 103-13 can exchange.
Said step 103-8 step 103-8 ' replacement, said step 103-11 step 103-11 ' replacement, said step 103-12 available step 103-12 ' replaces as follows:
Step 103-8 ': judging whether current state is to prepare done state, is then
Judge whether the character that current pointer points to is '>', be that then the redirect state is a done state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-11 ': judging whether current state is done state, is then
Judge character that current pointer points to whether be ' < ' is that then the redirect state is the 3rd initial state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-12 ': judging whether current state is element tail initial state, is then
Judge whether the character that current pointer points to is '/', is that then the redirect state is the bright state of element coda, otherwise, report an error and withdraw from;
Otherwise carry out next step.
Above-mentioned steps 104 specifically comprises the steps,
Step 104-1: judging whether the redirect state is first initial state, is then
Judging whether current state is initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-2: judging whether the redirect state is the heading initial state, is then
Judging whether current state is first initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-3: judge that the redirect state whether for element head statement state, is then
Judging that whether current state is first initial state or element head done state or done state or element head statement state or second initial state or the 3rd initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-4: judging whether the redirect state is heading statement state, is then
Judging that whether current state is heading initial state or heading statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-5: judging whether the redirect state is element head done state, is then
Judging that whether current state is element head statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-6: judging whether the redirect state is the note initial state, is then
Judging that whether current state is element head statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-7: judging whether the redirect state is to prepare done state, is then
Judging that whether current state is element head statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-8: judging whether the redirect state is second initial state, is then
Judging that whether current state is element head done state or element value statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-9: judging whether the redirect state is element value statement state, is then
Judging that whether current state is element head done state or element value statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-10: judging whether the redirect state is done state, is then
Judging that whether current state is to prepare done state or the bright state of element coda, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-11: judging whether the redirect state is element tail initial state, is then
Judging that whether current state is element head done state or element value statement state or the 3rd initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-12: judging whether the redirect state is the bright state of element coda, is then
Judging whether current state is element tail initial state or bright state of element coda or the 3rd initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-13: judging whether the redirect state is the 3rd initial state, is then
Judging whether current state is the bright state of element coda, is execution in step 105 then, withdraws from otherwise report an error;
Withdraw from otherwise report an error.
The priority execution sequence of said step 104-1 to 104-12 can exchange.
The invention has the beneficial effects as follows: the XML message parsing method based on embedded platform provided by the invention, can be in the embedded device of software and hardware resources than anxiety, resolving preferably with XML is the information that form is preserved.
Description of drawings
Fig. 1 is a kind of XML message parsing method process flow diagram based on embedded platform.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done further below and describe in detail.
Be that the XML message is that example is introduced with data to be resolved in following examples.For the ease of explanation, in the present invention the data mode in the message is done as giving a definition:
With shape as "<amount name=" the amount of money: ">1000.5</Amount>" character string to be decided to be an element, complete element should comprise element head, element value, element tail, in above-mentioned element, "<amount name=" the amount of money: ">" be the element head, 1000.5 is element value, "</Amount>" be the element tail, in the element tail of an element "</" and “>" between character string be the title of this element, in above-mentioned element, " name=" amount of money: " " is element property, and element property can only be present in the element head;
Wherein, element can carry out nested, element should with "<element term " beginning, "</Yuan Sumingcheng>" ending, for example
Figure BDA0000088128590000101
Be nested with element T radeType, SubType, Timestamp among the elements Si gnData, nested element is referred to as daughter element, and further, daughter element TradeType, SubType, Timestamp are called adjacent daughter element mutually.
Embodiment 1
A kind of method of utilizing the state machine resolution data that present embodiment provides can go out important content from extracting data to be resolved fast, as shown in Figure 1, may further comprise the steps:
Step 101: initialization;
Specifically comprise: current pointer is pointed to first characters of data to be resolved, current state is changed to initial state, the redirect state is changed to sky.
Step 102: judge that current pointer points to the end that whether exceeds data to be resolved, is then to finish, otherwise carries out next step;
Particularly, ' 0 ' then resolves and finishes if current pointer points to character in the present embodiment.
Step 103: character and the current state pointed to according to current pointer calculate the redirect state;
Preferably be set in the present embodiment, at first judge current state, judge then whether the character that current pointer under the current state points to satisfies preset key character, said preset key character comprises ' < ', '! ', '? ', '/' and '>', then carry out corresponding operating if satisfy, otherwise judge the situation when character that current pointer points to is for other characters again.Detailed process is following:
Step 103-1: judging whether current state is initial state, is then
Judge character that current pointer points to whether be ' < ' is that then the redirect state is first initial state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-2: judging whether current state is first initial state, is then
Judge character that current pointer points to whether be ' < ', '>', '! ', in '/' any one, be then to report an error to withdraw from, otherwise, judge the character that current pointer points to be '? ', be that then the redirect state is the heading initial state, otherwise the redirect state is element head statement state;
Otherwise carry out next step;
Step 103-3: judging whether current state is the heading initial state, is then
Judge character that current pointer points to whether be ' < ', '>', '! ', '/', '? ' in any one, be then to report an error to withdraw from, otherwise the redirect state is a heading statement state;
Otherwise carry out next step;
Step 103-4: judge that current state whether for element head statement state, is then
Do you judge that the character that current pointer points to is ' < ' or '? ', be then to report an error to withdraw from, otherwise; Judge whether the character that current pointer points to is '>'; Be that then the redirect state is an element head done state, otherwise, judge character that current pointer points to whether be '! ', be that then the redirect state is the note initial state, otherwise, judge whether the character that current pointer points to is '/', be that then the redirect state is the preparation done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Concrete in this step, said preparation done state is meant the preparation done state of element.
Step 103-5: judging whether current state is heading statement state, is then
Judge character that current pointer points to whether be ' < ' or '>' or '! ', be then to report an error to withdraw from, otherwise, judge the character that current pointer points to be '? ', be that then the redirect state is the preparation done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Concrete in this step, said preparation done state is meant the preparation done state of heading.
Step 103-6: judging whether current state is element head done state, is then
Judge character that current pointer points to whether be '! ' or '>' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is that ' < ' is that then the redirect state is second initial state, otherwise the redirect state is an element value statement state;
Otherwise carry out next step;
Step 103-7: judging whether current state is the note initial state, is then
Judge character that current pointer points to be ' < ' or '>' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge character that current pointer points to whether be '! ', be that then the redirect state is the preparation done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Prepare the preparation done state that done state is meant note described in this step.
Step 103-8: judging whether current state is to prepare done state, is then
Judge character that current pointer points to whether be '! ' or ' < ' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is '>', be that then the redirect state is a done state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-9: judging whether current state is second initial state, is then
Judge character that current pointer points to be ' < ' or '>' or '? ' or '! ', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is '/', is that then the redirect state is the bright state of element coda, otherwise the redirect state is element head statement state;
Otherwise carry out next step;
Step 103-10: judging whether current state is element value statement state, is then
Judge character that current pointer points to whether be '! ' or '>' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is that ' < ' be that then the redirect state is an element tail initial state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-11: judging whether current state is done state, is then
Judge that the character that current pointer points to is '/' or '>' or '? ' or '! ', be then to report an error to withdraw from, otherwise, judge character that current pointer points to whether be ' < ' is that then the redirect state is the 3rd initial state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-12: judging whether current state is element tail initial state, is then
Judge character that current pointer points to be ' < ' or '>' or '? ' or '! ', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is '/', is that then the redirect state is the bright state of element coda, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-13: judging whether current state is the bright state of element coda, is then
Judge that whether character that current pointer points to is ' < ' or '! ' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge that the character that current pointer points to is '>', be that then the redirect state is a done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Done state described in this step specifically is meant the done state of element.
Step 103-14: judging whether current state is the 3rd initial state, is then
Judge that whether character that current pointer points to is ' < ' or '! ' or '? ' or '/>', be then to report an error to withdraw from, otherwise, judge that the character that current pointer points to is '/', be that then the redirect state is the bright state of element coda, otherwise the redirect state is element head statement state;
Withdraw from otherwise report an error.
Particularly, according to the difference of the current state of judging, operation performed when current pointer points to preset key character is also different in the present embodiment, for example, among the step 103-5 current pointer point to ' < ' or '>' or '! ' time report an error and withdraw from, current pointer point to '? ' time draw the redirect state for preparing done state, it is the state identical with current state that the character that current pointer points to draws the redirect state during for other.
Further, the priority execution sequence of above-mentioned steps 103-1 to 103-13 can exchange, and the redirect state that step 103 is calculated can not exert an influence, all within protection domain of the present invention.
When not setting above-mentioned preset key character, above-mentioned steps 103-8 can use step 103-8 ' replacement, above-mentioned steps 103-11 available step 103-11 ' replacement, and above-mentioned steps 103-12 available step 103-12 ' replacement, specific as follows:
Step 103-8 ': judging whether current state is to prepare done state, is then
Judge whether the character that current pointer points to is '>', be that then the redirect state is a done state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-11 ': judging whether current state is done state, is then
Judge character that current pointer points to whether be ' < ' is that then the redirect state is the 3rd initial state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-12 ': judging whether current state is element tail initial state, is then
Judge whether the character that current pointer points to is '/', is that then the redirect state is the bright state of element coda, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 104: judge whether current state and redirect state meet the condition of making an appointment, then carry out next step if meet, otherwise the end that reports an error;
Particularly, judging whether to meet in advance, the process of predetermined condition preferably adopts step in the present embodiment:
Step 104-1: judging whether the redirect state is first initial state, is then
Judging whether current state is initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-2: judging whether the redirect state is the heading initial state, is then
Judging whether current state is first initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-3: judge that the redirect state whether for element head statement state, is then
Judging that whether current state is first initial state or element head done state or done state or element head statement state or second initial state or the 3rd initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-4: judging whether the redirect state is heading statement state, is then
Judging that whether current state is heading initial state or heading statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-5: judging whether the redirect state is element head done state, is then
Judging that whether current state is element head statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-6: judging whether the redirect state is the note initial state, is then
Judging that whether current state is element head statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-7: judging whether the redirect state is to prepare done state, is then
Judging that whether current state is element head statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-8: judging whether the redirect state is second initial state, is then
Judging that whether current state is element head done state or element value statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-9: judging whether the redirect state is element value statement state, is then
Judging that whether current state is element head done state or element value statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-10: judging whether the redirect state is done state, is then
Judging that whether current state is to prepare done state or the bright state of element coda, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-11: judging whether the redirect state is element tail initial state, is then
Judging that whether current state is element head done state or element value statement state or the 3rd initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-12: judging whether the redirect state is the bright state of element coda, is then
Judging whether current state is element tail initial state or bright state of element coda or the 3rd initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-13: judging whether the redirect state is the 3rd initial state, is then
Judging whether current state is the bright state of element coda, is execution in step 105 then, withdraws from otherwise report an error;
Withdraw from otherwise report an error.
Further, the priority execution sequence of above-mentioned steps 104-1 to 104-12 can exchange, and judges whether to meet in advance to step 104 is said that the final judged result of predetermined condition can not exert an influence, all within protection scope of the present invention.
Step 105: judge whether current state and redirect state meet the extracting rule of making an appointment, be then to operate accordingly to carry out next step again, otherwise directly carry out next step;
Saidly judge whether to meet the extracting rule of making an appointment and can be specially:
Judge whether current state and redirect state meet the format convention of making an appointment, be then to operate accordingly to carry out next step again, otherwise report an error;
Said format convention comprises: if the element in the data to be resolved is unique, and when then and if only if element head is consistent with the element tail, correct format, otherwise mistake; If there is daughter element in the element in the data to be resolved, then during all elements correct format, correct format, otherwise mistake.
Whether the element of judging correct format consistent with the element term of making an appointment, if the consistent element value that then extracts record, otherwise do not extract direct execution next step.
Step 106: current state is changed to said redirect state;
Step 107: current pointer is pointed to the character late of data to be resolved, return execution in step 102.
Embodiment 2
Be the basis with embodiment 1, when the element in the data to be resolved is unique, suppose that the extracting rule of making an appointment described in the step 105 is: and if only if element head then extracts the element value of this element when consistent with the element tail; Then the concrete operations of step 105 comprise in resolving:
Step 105-1: current state is first initial state, and the redirect state is an element head statement state, from the character opening entry data of current pointer sensing;
Step 105-2: current state is element head statement state, and the redirect state is an element head done state, end record, and the data of noting are the element head;
Further, the content of said element head before from first character to first space is the element term the element head.If there is not the space, then said element head is element term.
Step 105-2 ': current state is an element head statement state, and the redirect state is the preparation done state, end record, and the data of noting are element term;
Step 105-3: current state is an element head done state, and the redirect state is an element value statement state, from the character opening entry data of current pointer sensing;
Step 105-4: current state is an element value statement state, and the redirect state is an element tail initial state, end record, and the data of noting are element value;
Step 105-5: current state is an element tail initial state, and the redirect state is the bright state of element coda, from the character opening entry data of current pointer sensing;
Step 105-6: current state is the bright state of element coda, and the redirect state is a done state, end record, and the data of noting are the element tail;
Further, the part of element tail except first character is element term.
Among step 105-7: the determining step 105-2 (or step 105-2 ') element term of record whether with step 105-6 in write down consistent, if the consistent element value that then extracts in the data of noting, otherwise report an error.
The extracting rule of preferably, making an appointment described in the step 105 can also be: and if only if then extracts the element value of this element when element head element term consistent with the element tail and element head and element tail is the element term of making an appointment; Be specially if the consistent element correct format of representing that writes down among element term and the step 105-6 of record among the step 105-2 (or step 105-2 '); Then further judge whether the element term of said record is consistent with the element term of making an appointment; If unanimity is then extracted element value, otherwise does not extract.
For example, when data to be resolved do<timestamp>12345</Timestamp>The time, when the method that then adopts embodiment 1 to provide is resolved, specifically can implement above-mentioned steps 105-1,105-2,105-3,105-4,105-5,105-6,105-7 during execution in step 105, and the data of finally extracting are " 12345 "; Further, if element term " Timestamp " conforms to the element term of making an appointment and then extracts data " 12345 " />, then do not extract operation if do not conform to.When data to be resolved are < Timestamp; When the method that then adopts embodiment 1 to provide is resolved, specifically can implement above-mentioned steps 105-1 and 105-2 ' during execution in step 105, the data of then noting are element " Timestamp "; This element is empty element, does not have the data of extraction.
Embodiment 3
Be the basis with embodiment 1; When there is daughter element in the element in the data to be resolved, suppose that the extracting rule of making an appointment described in the step 105 is: current only when the element head is consistent with the element tail, the daughter element head then extracts record when consistent with the daughter element tail element value; Then the concrete operations of step 105 comprise in resolving:
Step 105-1: current state is first initial state, and the redirect state is an element head statement state, from the character opening entry data of current pointer sensing;
Step 105-2: current state is element head statement state, and the redirect state is an element head done state, end record, and the data of noting are the element head;
Step 105-3: current state is an element head done state, and the redirect state is second initial state, does not do any record;
Step 105-4: current state is second initial state, and the redirect state is an element head statement state, from the character opening entry data of current pointer sensing;
Step 105-5: current state is element head statement state, and the redirect state is an element head done state, end record, and the data of noting are the element head of daughter element;
Step 105-6: current state is an element head done state, and the redirect state is an element value statement state, from the character opening entry data of current pointer sensing;
Step 105-7: current state is an element value statement state, and the redirect state is an element tail initial state, end record, and the data of noting are the element value of daughter element;
Step 105-8: current state is an element tail initial state, and the redirect state is the bright state of element coda, from the character opening entry data of current pointer sensing;
Step 105-9: current state is the bright state of element coda, and the redirect state is a done state, end record, and the data of noting are the element tail of daughter element;
Step 105-10: current state is a done state, and the redirect state is the 3rd initial state, does not do any record;
Step 105-11: current state is the 3rd initial state, and the redirect state is the bright state of element coda, from the character opening entry data of current pointer sensing;
Step 105-12: current state is the bright state of element coda, and the redirect state is a done state, end record, and the data of noting are the element tail of the upper strata element of daughter element;
Step 105-13: whether the element head of judging current record is consistent with element tail, daughter element head and daughter element tail, if the consistent element value that then extracts in the data of noting, otherwise report an error.
The extracting rule of preferably, making an appointment described in the step 105 can also be: and if only if element head is consistent with the element tail, the daughter element head is consistent with the daughter element tail while the element term of the element term of element head and element tail and daughter element head and daughter element tail then extracts the element value of this element when being the element term of making an appointment; Be specially if the element head of current record is consistent with the element tail, the daughter element head is consistent with the daughter element tail; Whether the element term of element term, daughter element head and daughter element tail of then further judging said element head and element tail is consistent with the element term of making an appointment; If then carrying out, unanimity extracts operation; Element value in the data that extraction is noted, otherwise do not extract.
For example, below data to be resolved have element nested, promptly Timestamp is the daughter element of SignData:
<SignData>
<Timestamp>12345</Timestamp>
</SignData>
When resolving, specifically can implement above-mentioned steps 105-1 to 105-13 during execution in step 105, and the data of finally extracting are " 12345 " according to embodiment 1 said method.
Further, if element term " Timestamp ", " SignData " are the element term of making an appointment and then extract data " 12345 ", if wherein any one does not meet the element term of making an appointment and does not then extract operation.
Embodiment 4
Be the basis with embodiment 1, there are a plurality of adjacent daughter elements in the element in data to be resolved, supposes that the extracting rule of making an appointment described in the step 105 is: and if only if all elements head then extracts the element value that records when consistent with the element tail; Then the concrete operations of step 105 comprise in resolving:
Step 105-1: current state is first initial state, and the redirect state is an element head statement state, from the character opening entry data of current pointer sensing;
Step 105-2: current state is element head statement state, and the redirect state is an element head done state, end record, and the data of noting are the element head;
Step 105-3: current state is an element head done state, and the redirect state is second initial state, does not do any record;
Step 105-4: current state is second initial state, and the redirect state is an element head statement state, from the character opening entry data of current pointer sensing;
Step 105-5: current state is element head statement state, and the redirect state is an element head done state, end record, and the data of noting are the element head of daughter element;
Step 105-6: current state is an element head done state, and the redirect state is an element value statement state, from the character opening entry data of current pointer sensing;
Step 105-7: current state is an element value statement state, and the redirect state is an element tail initial state, end record, and the data of noting are the element value of daughter element;
Step 105-8: current state is an element tail initial state, and the redirect state is the bright state of element coda, from the character opening entry data of current pointer sensing;
Step 105-9: current state is the bright state of element coda, and the redirect state is a done state, end record, and the data of noting are the element tail of daughter element;
Step 105-10: current state is a done state, and the redirect state is the 3rd initial state, does not do any record;
Step 105-11: current state is the 3rd initial state, and the redirect state is an element head statement state, from the character opening entry data of current pointer sensing;
Step 105-12: current state is element head statement state, and the redirect state is an element head done state, end record, and the data of noting are the element head of sub adjacent daughter element;
Step 105-13: current state is an element head done state, and the redirect state is an element value statement state, from the character opening entry data of current pointer sensing;
Step 105-14: current state is an element value statement state, and the redirect state is an element tail initial state, end record, and the data of noting are the element value of adjacent daughter element;
Step 105-15: current state is an element tail initial state, and the redirect state is the bright state of element coda, from the character opening entry data of current pointer sensing;
Step 105-16: current state is the bright state of element coda, and the redirect state is a done state, end record, and the data of noting are the element tail of adjacent daughter element;
Step 105-17: current state is a done state, and the redirect state is the 3rd initial state, does not do any record;
Step 105-18: current state is the 3rd initial state, and the redirect state is the bright state of element coda, from the character opening entry data of current pointer sensing;
Step 105-19: current state is the bright state of element coda, and the redirect state is a done state, end record, and the data of noting are the element tail of daughter element;
Step 105-20: current state is a done state, and the redirect state is the 3rd initial state, does not do any record;
Step 105-21: current state is the 3rd initial state, and the redirect state is the bright state of element coda, from the character opening entry data of current pointer sensing;
Step 105-22: current state is the bright state of element coda, and the redirect state is a done state, end record, and the data of noting are the element tail of the upper strata element of daughter element;
Step 105-23: whether the element head of element head and element tail, daughter element head and daughter element tail, adjacent daughter element of judging current record is consistent with the element tail, if the consistent element value that then extracts in the data of noting, otherwise report an error.
The extracting rule of preferably, making an appointment described in the step 105 can also be: and if only if element head is consistent with the element tail, the daughter element head is consistent with the daughter element tail, the element head of adjacent daughter element is consistent with the element tail and the element term of the element head of the element term of element term, daughter element head and the daughter element tail of element head and element tail and adjacent daughter element and element tail then extracts the element value of this element when being the element term of making an appointment;
Be specially if the element head of current record is consistent with the element tail, the daughter element head is consistent with the daughter element tail, the consistent element correct format of then representing with the element tail of the element head of adjacent daughter element; Then further judge whether the element head of element term, daughter element head and the element term of daughter element tail of said element head and element tail, adjacent daughter element and element tail are the element term of making an appointment; Extract operation if then carry out; Element value in the data that extraction is noted is not if any one element term meets the element term of making an appointment and then do not extract.
For example, below data to be resolved elements Si gnData have adjacent three child elements TradeType, SubType and a Timestamp,
When resolving, specifically can implement the said step of present embodiment 105-1 to 105-23 during execution in step 105, and the data of finally extracting are " innerTransfer ", " salary card " and " 12345 " according to embodiment 1 said method.
Figure BDA0000088128590000241
Further, for the data to be resolved of above-mentioned form, the element value that the extraction record in the extracting rule of making an appointment described in the step 105 also is set changes to element property value and the element value that extracts record.Then for above-mentioned example literary composition, the data of finally extracting are " innerTransfer transfers accounts in the row ", " wage card salary card " and " 12345 ";
Further; Can also be provided with that and if only if element term " SignData ", " TradeType ", " SubType ", when being the element term of making an appointment, " Timestamp " then extract the element value in the data of noting, if wherein any one element term does not meet the element term of making an appointment and then do not extract operation.
Above-described embodiment is a more preferably embodiment of the present invention, and common variation that those skilled in the art carries out in technical scheme scope of the present invention and replacement all should be included in protection scope of the present invention.

Claims (13)

1. XML message parsing method based on embedded platform is characterized in that: may further comprise the steps,
Step 101: init state machine;
Step 102: judge whether current pointer points to the end of data to be resolved, is then to resolve end, otherwise carry out next step;
Step 103: character and the current state pointed to according to current pointer calculate the redirect state;
Step 104: judge whether current state and redirect state meet the condition of making an appointment, then carry out next step if meet, otherwise the end that reports an error;
Step 105: judge whether current state and redirect state meet the extracting rule of making an appointment, be then to operate accordingly to carry out next step again, otherwise directly carry out next step;
Step 106: current state is changed to said redirect state;
Step 107: current pointer is pointed to character late, return execution in step 102.
2. a kind of XML message parsing method according to claim 1 based on embedded platform; It is characterized in that: the said initialization procedure of step 101 comprises first character that current pointer is pointed to data to be resolved; Current state is changed to initial state, and the redirect state is changed to sky.
3. a kind of XML message parsing method based on embedded platform according to claim 1 is characterized in that: in the said step 102, if current pointer sensing character ' 0 ', then resolve and finish.
4. a kind of XML message parsing method according to claim 1 based on embedded platform; It is characterized in that: step 103 is specially; Judge earlier and draw current state; According to current state; Preferential redirect state corresponding when calculating character that current pointer points to for preset key character, corresponding redirect state when calculating character that current pointer points to again and being other characters.
5. a kind of XML message parsing method based on embedded platform according to claim 4 is characterized in that: said preset key character comprises ' < ', '! ', '? ', '/' and '>'.
6. a kind of XML message parsing method based on embedded platform according to claim 1 is characterized in that: said character that points to according to current pointer of step 103 and current state calculate the redirect state and specifically may further comprise the steps,
Step 103-1: judging whether current state is initial state, is then
Judge character that current pointer points to whether be ' < ' is that then the redirect state is first initial state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-2: judging whether current state is first initial state, is then
Judge character that current pointer points to whether be ' < ', '>', '! ', in '/' any one, be then to report an error to withdraw from, otherwise, judge the character that current pointer points to be '? ', be that then the redirect state is the heading initial state, otherwise the redirect state is element head statement state;
Otherwise carry out next step;
Step 103-3: judging whether current state is the heading initial state, is then
Judge character that current pointer points to whether be ' < ', '>', '! ', '/', '? ' in any one, be then to report an error to withdraw from, otherwise the redirect state is a heading statement state;
Otherwise carry out next step;
Step 103-4: judge that current state whether for element head statement state, is then
Do you judge that the character that current pointer points to is ' < ' or '? ', be then to report an error to withdraw from, otherwise; Judge whether the character that current pointer points to is '>'; Be that then the redirect state is an element head done state, otherwise, judge character that current pointer points to whether be '! ', be that then the redirect state is the note initial state, otherwise, judge whether the character that current pointer points to is '/', be that then the redirect state is the preparation done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-5: judging whether current state is heading statement state, is then
Judge character that current pointer points to whether be ' < ' or '>' or '! ', be then to report an error to withdraw from, otherwise, judge the character that current pointer points to be '? ', be that then the redirect state is the preparation done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-6: judging whether current state is element head done state, is then
Judge character that current pointer points to whether be '! ' or '>' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is that ' < ' is that then the redirect state is second initial state, otherwise the redirect state is an element value statement state;
Otherwise carry out next step;
Step 103-7: judging whether current state is the note initial state, is then
Judge character that current pointer points to be ' < ' or '>' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge character that current pointer points to whether be '! ', be that then the redirect state is the preparation done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-8: judging whether current state is to prepare done state, is then
Judge character that current pointer points to whether be '! ' or ' < ' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is '>', be that then the redirect state is a done state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-9: judging whether current state is second initial state, is then
Judge character that current pointer points to be ' < ' or '>' or '? ' or '! ', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is '/', is that then the redirect state is the bright state of element coda, otherwise the redirect state is element head statement state;
Otherwise carry out next step;
Step 103-10: judging whether current state is element value statement state, is then
Judge character that current pointer points to whether be '! ' or '>' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is that ' < ' be that then the redirect state is an element tail initial state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-11: judging whether current state is done state, is then
Judge that the character that current pointer points to is '/' or '>' or '? ' or '! ', be then to report an error to withdraw from, otherwise, judge character that current pointer points to whether be ' < ' is that then the redirect state is the 3rd initial state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-12: judging whether current state is element tail initial state, is then
Judge character that current pointer points to be ' < ' or '>' or '? ' or '! ', be then to report an error to withdraw from, otherwise, judge whether the character that current pointer points to is '/', is that then the redirect state is the bright state of element coda, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-13: judging whether current state is the bright state of element coda, is then
Judge that whether character that current pointer points to is ' < ' or '! ' or '? ' or '/', be then to report an error to withdraw from, otherwise, judge that the character that current pointer points to is '>', be that then the redirect state is a done state, otherwise the redirect state is the state identical with current state;
Otherwise carry out next step;
Step 103-14: judging whether current state is the 3rd initial state, is then
Judge that whether character that current pointer points to is ' < ' or '! ' or '? ' or '/>', be then to report an error to withdraw from, otherwise, judge that the character that current pointer points to is '/', be that then the redirect state is the bright state of element coda, otherwise the redirect state is element head statement state;
Withdraw from otherwise report an error.
7. a kind of XML message parsing method based on embedded platform according to claim 6, it is characterized in that: the priority execution sequence of said step 103-1 to 103-13 can exchange.
8. a kind of XML message parsing method according to claim 6 based on embedded platform; It is characterized in that: said step 103-8 step 103-8 ' replacement; Said step 103-11 step 103-11 ' replacement, said step 103-12 available step 103-12 ' replaces as follows:
Step 103-8 ': judging whether current state is to prepare done state, is then
Judge whether the character that current pointer points to is '>', be that then the redirect state is a done state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-11 ': judging whether current state is done state, is then
Judge character that current pointer points to whether be ' < ' is that then the redirect state is the 3rd initial state, otherwise, report an error and withdraw from;
Otherwise carry out next step;
Step 103-12 ': judging whether current state is element tail initial state, is then
Judge whether the character that current pointer points to is '/', is that then the redirect state is the bright state of element coda, otherwise, report an error and withdraw from;
Otherwise carry out next step.
9. a kind of XML message parsing method based on embedded platform according to claim 1 is characterized in that: said step 104 specifically comprises the steps,
Step 104-1: judging whether the redirect state is first initial state, is then
Judging whether current state is initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-2: judging whether the redirect state is the heading initial state, is then
Judging whether current state is first initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-3: judge that the redirect state whether for element head statement state, is then
Judging that whether current state is first initial state or element head done state or done state or element head statement state or second initial state or the 3rd initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-4: judging whether the redirect state is heading statement state, is then
Judging that whether current state is heading initial state or heading statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-5: judging whether the redirect state is element head done state, is then
Judging that whether current state is element head statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-6: judging whether the redirect state is the note initial state, is then
Judging that whether current state is element head statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-7: judging whether the redirect state is to prepare done state, is then
Judging that whether current state is element head statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-8: judging whether the redirect state is second initial state, is then
Judging that whether current state is element head done state or element value statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-9: judging whether the redirect state is element value statement state, is then
Judging that whether current state is element head done state or element value statement state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-10: judging whether the redirect state is done state, is then
Judging that whether current state is to prepare done state or the bright state of element coda, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-11: judging whether the redirect state is element tail initial state, is then
Judging that whether current state is element head done state or element value statement state or the 3rd initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-12: judging whether the redirect state is the bright state of element coda, is then
Judging whether current state is element tail initial state or bright state of element coda or the 3rd initial state, is execution in step 105 then, withdraws from otherwise report an error;
Otherwise carry out next step;
Step 104-13: judging whether the redirect state is the 3rd initial state, is then
Judging whether current state is the bright state of element coda, is execution in step 105 then, withdraws from otherwise report an error;
Withdraw from otherwise report an error.
10. a kind of XML message parsing method based on embedded platform according to claim 9, it is characterized in that: the priority execution sequence of said step 104-1 to 104-12 can exchange.
11. a kind of XML message parsing method according to claim 1 based on embedded platform; It is characterized in that: the said extracting rule of step 105 does; If the element in the data to be resolved is unique, the element value that extraction was write down when then and if only if element head was consistent with the element tail; If there is daughter element in the element in the data to be resolved, then and if only if element head element value consistent with the element tail, that extraction was write down when the daughter element head was consistent with the daughter element tail; If there are a plurality of adjacent daughter elements in the element in the data to be resolved, the element value that extraction was write down when then and if only if all elements head was consistent with the element tail.
12. a kind of XML message parsing method based on embedded platform according to claim 1 is characterized in that: the said execution corresponding operating of step 105 comprises opening entry, end record and extracts data recorded.
13. a kind of XML message parsing method according to claim 1 based on embedded platform; It is characterized in that: the said extracting rule of step 105 does; If the element in the data to be resolved is unique, then and if only if extraction is write down when element head element term consistent with the element tail and element head and element tail meets the element term of making an appointment element value; If there is daughter element in the element in the data to be resolved, then and if only if element head is consistent with the element tail, the daughter element head is consistent with the daughter element tail and the element term of the element term of element head and element tail, daughter element head and the daughter element tail element value that extraction is write down when meeting the element term of making an appointment; If there are a plurality of adjacent daughter elements in the element in the data to be resolved, then and if only if extraction is write down when all elements head element term consistent with the element tail and all elements head and element tail meets the element term of making an appointment element value.
CN201110256472A 2011-08-31 2011-08-31 Method for analyzing extensible markup language (XML) message based on embedded platform Pending CN102306191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110256472A CN102306191A (en) 2011-08-31 2011-08-31 Method for analyzing extensible markup language (XML) message based on embedded platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110256472A CN102306191A (en) 2011-08-31 2011-08-31 Method for analyzing extensible markup language (XML) message based on embedded platform

Publications (1)

Publication Number Publication Date
CN102306191A true CN102306191A (en) 2012-01-04

Family

ID=45380053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110256472A Pending CN102306191A (en) 2011-08-31 2011-08-31 Method for analyzing extensible markup language (XML) message based on embedded platform

Country Status (1)

Country Link
CN (1) CN102306191A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647351A (en) * 2012-04-01 2012-08-22 飞天诚信科技股份有限公司 Method and device for processing XML (Extensible Markup Language) packets

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055679A1 (en) * 2005-08-25 2007-03-08 Fujitsu Limited Data expansion method and data processing method for structured documents
CN1991837A (en) * 2005-12-27 2007-07-04 国际商业机器公司 Structured document processing apparatus and method
US20070250471A1 (en) * 2006-04-25 2007-10-25 International Business Machines Corporation Running XPath queries over XML streams with incremental predicate evaluation
CN101976244A (en) * 2010-09-30 2011-02-16 北京飞天诚信科技有限公司 Method for partitioning nodes in XML (Extensible Markup Language) message as well as methods for applying same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055679A1 (en) * 2005-08-25 2007-03-08 Fujitsu Limited Data expansion method and data processing method for structured documents
CN1991837A (en) * 2005-12-27 2007-07-04 国际商业机器公司 Structured document processing apparatus and method
US20070250471A1 (en) * 2006-04-25 2007-10-25 International Business Machines Corporation Running XPath queries over XML streams with incremental predicate evaluation
CN101976244A (en) * 2010-09-30 2011-02-16 北京飞天诚信科技有限公司 Method for partitioning nodes in XML (Extensible Markup Language) message as well as methods for applying same

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
蔡七华等: "XML语法特性在SAX中的应用研究", 《现代电子技术》, vol. 31, no. 8, 14 July 2008 (2008-07-14) *
陈彦庭等: "XML加速技术研究", 《第十五届计算机工程与工艺年会暨第一届微处理器技术论坛论文集(A辑)》, 14 August 2011 (2011-08-14), pages 406 - 409 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647351A (en) * 2012-04-01 2012-08-22 飞天诚信科技股份有限公司 Method and device for processing XML (Extensible Markup Language) packets
CN102647351B (en) * 2012-04-01 2014-09-10 飞天诚信科技股份有限公司 Method and device for processing XML (Extensible Markup Language) packets

Similar Documents

Publication Publication Date Title
CN102331967B (en) Method for managing chip verification test cases
CN105868171B (en) A kind of method of calibration and device of Excel file
CN102682109B (en) Patent information analysis method and device
CN101430714B (en) Content structuring process method and system based on model
CN103473056B (en) A kind of remote measurement configuration file automatic generation method
CN101859303A (en) Metadata management method and management system
CN102855232A (en) Table analysis and edit processing method
CN104699785A (en) Paper similarity detection method
CN105808417A (en) Automated testing method and proxy server
CN103699591A (en) Page body extraction method based on sample page
CN102651002A (en) Webpage information extracting method and system
CN110209387B (en) Method and device for generating top-level HDL file and computer readable storage medium
CN105607923A (en) Cross-platform avionics system configuration data generation and recovery method
CN109977383A (en) A kind of form information extracting method based on Excel
CN104182548A (en) Webpage updating and processing method and device
CN103902269A (en) System and method for generating MIB files through XML files
CN106445476A (en) Code change information determination method and device and electronic equipment
CN104156198A (en) Method and device for automatically generating software integration version updating description
CN103235757B (en) Several apparatus and method that input domain tested object is tested are made based on robotization
CN106446064A (en) Data conversion method and device
CN112783482B (en) Visual form generation method, device, equipment and storage medium
CN105573972B (en) The generation method and device of report check formula
CN102306191A (en) Method for analyzing extensible markup language (XML) message based on embedded platform
CN105373562A (en) Acquisition method and device of PDF (Portable Document Format) documentation comment
CN106033338A (en) Method and device for importing and analyzing source code based on FOG data

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: 20120104