CN103021437A - Method for processing extensible makeup language (XML) data through blue-ray player - Google Patents
Method for processing extensible makeup language (XML) data through blue-ray player Download PDFInfo
- Publication number
- CN103021437A CN103021437A CN2012105081275A CN201210508127A CN103021437A CN 103021437 A CN103021437 A CN 103021437A CN 2012105081275 A CN2012105081275 A CN 2012105081275A CN 201210508127 A CN201210508127 A CN 201210508127A CN 103021437 A CN103021437 A CN 103021437A
- Authority
- CN
- China
- Prior art keywords
- node
- xml
- data
- xml data
- blue light
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 241001025261 Neoraja caerulea Species 0.000 title abstract 5
- 230000008569 process Effects 0.000 claims abstract description 7
- 238000010276 construction Methods 0.000 claims abstract description 6
- 230000009471 action Effects 0.000 claims description 19
- 238000012795 verification Methods 0.000 claims description 13
- 230000008859 change Effects 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000013517 stratification Methods 0.000 description 1
Images
Abstract
The invention discloses a method for processing XML data through a blue-ray player. The method is based on the blue-ray player which is provided with a built-in RapidXML library. The method comprises that (1) the blue-ray player is started, a data receiving thread T1 is initialized, the T1 starts operation, and then the initialization process is finished; (2) the XML data are analyzed, the data receiving thread T1 receives the original XML data, and an XML analysis module analyzes the XML data; and (3) the XML data are constructed, and an XML construction module constructs the XML data. The method is used in the blue-ray player, so that the capability of data processing is greatly improved, and the processing efficiency is improved.
Description
Technical field
The present invention relates to a kind of method of the XMl of processing data, relate in particular to a kind of blue light player to the disposal route of XML data.
Background technology
Blue light player, Sony are released global first item on April 10th, 2003.Blue light player can be play the blue light disc of high-definition format, can be by the 1080P high definition image quality of HDMI interface output 1920 * 1080 resolution, be the 5-6 of present DVD video definition doubly, its qualitative superiority makes blue light player obtain more and more people's favor.Present blue light player aspect deal with data, except general text, also has a kind of XML categorical data of extensively being adopted in the industry.XML(EXtensible Markup Language) extend markup language, being used for the electroactive marker subdocument makes it have structural markup language, can be used for flag data, definition data type, the source language that to be a kind of user of permission define oneself markup language.XML has multiple storehouse, such as TinyXML, Xerces DOM, RapidXML etc., wherein RapidXML be one increase income, the XML storehouse of lightweight, have that volume is little, parsing and preservation speed is fast, portability is good, availability is strong advantage, compare with TinyXML, Xerces DOM and other XML storehouses, the speed of Data Analysis is wanted fast decades of times, even 100 times.
Compare with traditional data storage method such as text etc., XML has following advantage.
1, XML can carry out effective access and management to semi-structured data.Be exactly a kind of semi-structured data such as web page contents, and traditional database can't effectively be managed for this class semi-structured data of similar web page contents.
2, provide operation to label and path.The traditional database language allows the value of data element is operated, and can not operate element term; And the semi-structured data storehouse provides the operation to bookmark name, has also comprised the operation to the path.
3, when data itself have level characteristics, because the level characteristics that the XML data layout can clear expression data, so XML is convenient to the data of stratification are operated.XML is fit to the data set of complex management data structure, if oneself is through with the XML format storage information, then XML is beneficial to document storage and retrieval; Can be with convenient and practical mode search file, and high-quality full-text search engine can be provided.XML can store and inquire about the file structure of xenogenesis in addition, and the support to the xenogenesis Information Access is provided.
Present blue light player on the market need to be resolved the XML data when the processing XML data, to obtain the information that contains in the XML data, treatment effeciency is generally lower at present, so that reaction is slower when relating to the operation of data class, can affect the experience that the user uses blue light player to some degree.How improving the efficient of blue light player processing XML data, is the direction that people study.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method of blue light player processing XML data, can the Effective Raise treatment effeciency, and improving performance.
In order to solve the problems of the technologies described above, the present invention takes following technical scheme:
A kind of method of blue light player processing XML data, the method may further comprise the steps based on the blue light player that is built-in with the RapidXML storehouse:
(1) start blue light player, initialization data receiving thread T1, T1 brings into operation, and then initialization procedure finishes;
(2) analyzing XML data, data receiver thread T1 receives original XML data, and the XML parsing module is resolved these XML data;
(3) structure XML data, the XML constructing module is constructed the XML data.
Described step (2) is further comprising the steps of:
(201) judge whether the data receiver thread receives new XML data;
(202) if receive new XML data, data receiver thread T1 is given to the XML parsing module with these XML data, and these XML data are generated copy; If do not receive new XML data, then return step (201);
(203) declaration node, body node and the action node of this part copy are carried out verification, if verification normally then enters next step (204); If verification is unusual, then resolve unsuccessfully, change step (209) over to;
(204) with the action node as current father node, and all child nodes below this father node are traveled through, search the node of appointment;
(205) judged whether to find the node of appointment;
(206) if then preserve the nodal value of this node name; If not, then resolve unsuccessfully, change step (209) over to;
(207) judge whether that the node of all appointments is all found;
(208) if then successfully resolved changes step (209 over to; If not, change step (204) over to;
(209) resolving finishes.
During described check-node, if this node is empty, illustrate that then verification is unusual, this node does not exist; If this node is not empty, illustrate that then this node exists.
Described step (3) is further comprising the steps of:
(301) data source of XML constructing module receive data receiving thread T1 transmission;
(302) create an XML template, this XML template comprises the body node of declaration node and a sky;
(303) under the body node, insert an action node;
(304) the XML document establishment is complete, and this XML document that creates is formatd and the changed string, preserves this character string, waits for subsequent treatment;
(305) construction process finishes.
Be inserted with the child node of related service under the described action node.
The data source that described XML constructing module receives is the parameter of original input, perhaps the nodal value through obtaining after resolving.
The invention solves ubiquitous blue light player and resolve and preserve the low problem of XML data age rate, on the basis in the RapidXML storehouse of increasing income, defined the XML treatment mechanism that meets self particular traffic requirements, the efficient of Effective Raise processing XML data, the user of Blu-ray player experienced larger lifting.
Description of drawings
Accompanying drawing 1 is main flow synoptic diagram of the present invention;
Accompanying drawing 2 is initialization thread schematic flow sheet of the present invention;
Accompanying drawing 3 is the schematic flow sheet of resolving of the present invention;
Accompanying drawing 4 is the schematic flow sheet of construction process of the present invention.
Embodiment
For the ease of those skilled in the art's understanding, the invention will be further described below in conjunction with accompanying drawing.
The present invention has disclosed a kind of method of blue light player processing XML data, by using the RapidXML storehouse in blue light player, the efficient of Effective Raise processing XML data, the performance of lifting complete machine.This RapidXML storehouse has XML parsing module and XML constructing module, the iterator module, print module and utility module etc., this XML storehouse is for well known to a person skilled in the art technology, and each module in this XML storehouse all is often to know technology, and in this not go into detail.
As shown in Figure 1, a kind of method of blue light player processing XML data comprises step:
A kind of method of blue light player processing XML data, the method may further comprise the steps based on the blue light player that is built-in with the RapidXML storehouse:
(1) initialization starts blue light player, initialization data receiving thread T1, and T1 brings into operation, and then initialization procedure finishes.To the blue light player start that powers on, host process starts, and data receiving thread T1 is carried out initialization and makes its operation, finishes initialization procedure, as shown in Figure 2.
(2) analyzing XML data, data receiver thread T1 receives original XML data, and the XML parsing module is resolved these XML data.
(3) structure XML data, the XML constructing module is constructed the XML data.
Described step (2) is further comprising the steps of, as shown in Figure 3,
(201) judge whether data receiver thread T1 receives new XML data.Whether real-time detector data receiving thread T1 has receives new XML data, if having, then changes next step over to, if do not have, then continues to detect to judge.
(202) if receive new XML data, data receiver thread T1 is given to the XML parsing module with these XML data, and these XML data are generated copy; If do not receive new XML data, then return step (201).When data receiver thread T1 received new XML data, data receiver thread T1 was given to the XML parsing module with these XML data, will give the XML parsing module to the control of XML data, and a copy of this XML data generation is stored.
(203) declaration node, body node and the action node of this part copy are carried out verification, if verification normally then enters next step (204); If verification is unusual, then resolve unsuccessfully, change step (209) over to.Have a plurality of nodes in this part XML data, such as declaration node, body node and action node etc., certainly, the action node also can be other titles, according to the difference of information state and self-defined, is knowledge known in those skilled in the art.Declaration node, body node and action node to the copy of these XML data carry out verification, check the result of check.Check-node namely is to check whether this node exists.During check-node, if this node is empty, illustrate that then verification is unusual, this node does not exist, and resolves unsuccessfully, changes step (209) over to; If this node is not empty, illustrate that then this node exists, and enters next step (204).
(204) with the action node as current father node, and all child nodes below this father node are traveled through, search the node of appointment.Have a plurality of child nodes below the action node, can specify some child nodes wherein, also can specify all child nodes.Traversal namely refers to along certain bar search pattern, successively once access is all done once and only done to each node in the tree.All child nodes are traveled through, and namely are successively each child node to be carried out and only once access.
(205) judged whether to find the node of appointment.
(206) if found the node of appointment, then preserve the nodal value of this node; If do not find the node of appointment, then resolve unsuccessfully, change step (209) over to.
(207) judge whether that the node of all appointments is all found.The node that namely judges whether all appointments all travels through in all child nodes of action node.
(208) if result of determination is true, namely found the node of all appointments, successfully resolved changes step (209) over to; If result of determination is false, then do not find the node of all appointments, continue to resolve, change step (204) over to, continue in the child node of action node, to start anew to travel through and search the node of remaining appointment.Need to prove, as long as there have the node of an appointment not have to be found, illustrate that all this resolving is failed.
(209) finish the parsing of these XML data, resolving finishes.Data receiver thread T1 continues to carry out scanning, again waits for receiving new XML data.
Described step (3) is further comprising the steps of, as shown in Figure 4, and for to the concrete execution in step of the structure of XML data.
(301) data source of XML constructing module receive data receiving thread T1 transmission, this data source can be the data parameters of original input, also can be the nodal value parameter through obtaining after resolving.
(302) create an XML template, this XML template comprises the body node of declaration node and a sky, and this XML plate comprises and only comprise the body node of declaration node and a sky.
(303) under the body node, insert an action node.Difference according to program information, the title of this action node also can be other titles, such as can be response node (representing one section response message from server end) or request node (representing one section solicited message from client) etc., need to prove, the above is just enumerated, and is not to be to limit.
(304) the XML document establishment is complete, and this XML document that creates is formatd and the changed string, preserves this character string, waits for subsequent treatment.Subsequent treatment such as blue light player extract the behaviors such as data.
(305) finish the construction process of these XML data, construction process finishes.
In addition, under the action node, be inserted with the child node of related service, this child node can for one, two, three or more, there is no concrete restricted number.
Claims (6)
1. the method for blue light player processing XML data, the method may further comprise the steps based on the blue light player that is built-in with the RapidXML storehouse:
(1) start blue light player, initialization data receiving thread T1, T1 brings into operation, and then initialization procedure finishes;
(2) analyzing XML data, data receiver thread T1 receives original XML data, and the XML parsing module is resolved these XML data;
(3) structure XML data, the XML constructing module is constructed the XML data.
2. the method for blue light player processing XML data according to claim 1, it is characterized in that: described step (2) is further comprising the steps of:
(201) judge whether the data receiver thread receives new XML data;
(202) if receive new XML data, data receiver thread T1 is given to the XML parsing module with these XML data, and these XML data are generated copy; If do not receive new XML data, then return step (201);
(203) declaration node, body node and the action node of this part copy are carried out verification, if verification normally then enters next step (204); If verification is unusual, then resolve unsuccessfully, change step (209) over to;
(204) with the action node as current father node, and all child nodes below this father node are traveled through, search the node of appointment;
(205) judged whether to find the node of appointment;
(206) if then preserve the nodal value of this node; If not, then resolve unsuccessfully, change step (209) over to;
(207) judge whether that the node of all appointments is all found;
(208) if then successfully resolved changes step (209) over to; If not, change step (204) over to;
(209) resolving finishes.
3. the method for blue light player processing XML data according to claim 2 is characterized in that: during described check-node, if this node is empty, illustrate that then verification is unusual, this node does not exist; If this node is not empty, illustrate that then this node exists.
4. the method for blue light player processing XML data according to claim 1, it is characterized in that: described step (3) is further comprising the steps of:
(301) data source of XML constructing module receive data receiving thread T1 transmission;
(302) create an XML template, this XML template comprises the body node of declaration node and a sky;
(303) under the body node, insert an action node;
(304) the XML document establishment is complete, and this XML document that creates is formatd and the changed string, preserves this character string, waits for subsequent treatment;
(305) construction process finishes.
5. the method for blue light player processing XML data according to claim 4 is characterized in that: the child node that is inserted with related service under the described action node.
6. the method for blue light player processing XML data according to claim 5, it is characterized in that: the data source that described XML constructing module receives is the parameter of original input, perhaps the nodal value through obtaining after resolving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210508127.5A CN103021437B (en) | 2012-12-03 | 2012-12-03 | Method for processing extensible makeup language (XML) data through blue-ray player |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210508127.5A CN103021437B (en) | 2012-12-03 | 2012-12-03 | Method for processing extensible makeup language (XML) data through blue-ray player |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103021437A true CN103021437A (en) | 2013-04-03 |
CN103021437B CN103021437B (en) | 2017-02-15 |
Family
ID=47969956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210508127.5A Expired - Fee Related CN103021437B (en) | 2012-12-03 | 2012-12-03 | Method for processing extensible makeup language (XML) data through blue-ray player |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103021437B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104240737A (en) * | 2014-09-22 | 2014-12-24 | 广东欧珀移动通信有限公司 | Method and system for playing disc through blue light player with title skipped |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1624792A (en) * | 2003-12-03 | 2005-06-08 | 皇家飞利浦电子股份有限公司 | Method and device for adding information |
CN101720483A (en) * | 2007-04-11 | 2010-06-02 | 汤姆森特许公司 | Authoring tools and the method that is used to realize this authoring tools |
CN102132581A (en) * | 2008-06-20 | 2011-07-20 | 艾尼波依特多媒体集团 | Method for providing channel service and computer-readable medium having thereon program performing function embodying the same |
US20110191178A1 (en) * | 2010-02-03 | 2011-08-04 | Randall Delbert Newberg | System and method for contextual advertising |
-
2012
- 2012-12-03 CN CN201210508127.5A patent/CN103021437B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1624792A (en) * | 2003-12-03 | 2005-06-08 | 皇家飞利浦电子股份有限公司 | Method and device for adding information |
CN101720483A (en) * | 2007-04-11 | 2010-06-02 | 汤姆森特许公司 | Authoring tools and the method that is used to realize this authoring tools |
CN102132581A (en) * | 2008-06-20 | 2011-07-20 | 艾尼波依特多媒体集团 | Method for providing channel service and computer-readable medium having thereon program performing function embodying the same |
US20110191178A1 (en) * | 2010-02-03 | 2011-08-04 | Randall Delbert Newberg | System and method for contextual advertising |
Non-Patent Citations (2)
Title |
---|
冯进等: "XML解析技术研究", 《计算机工程与科学》, vol. 31, no. 2, 28 February 2009 (2009-02-28), pages 120 - 124 * |
陈荣鑫等: "基于并行子树构建的XML解析方法", 《计算机科学》, vol. 38, no. 3, 31 March 2011 (2011-03-31) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104240737A (en) * | 2014-09-22 | 2014-12-24 | 广东欧珀移动通信有限公司 | Method and system for playing disc through blue light player with title skipped |
CN104240737B (en) * | 2014-09-22 | 2017-01-18 | 广东欧珀移动通信有限公司 | Method and system for playing disc through blue light player with title skipped |
Also Published As
Publication number | Publication date |
---|---|
CN103021437B (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102609402B (en) | Device and method for generation and management of ontology model based on real-time strategy | |
US8977606B2 (en) | Method and apparatus for generating extended page snippet of search result | |
RU2507574C2 (en) | Page-by-page breakdown of hierarchical data | |
US9892191B2 (en) | Complex query handling | |
CN103929321A (en) | Log processing method and device | |
US20150254211A1 (en) | Interactive data manipulation using examples and natural language | |
US20110078165A1 (en) | Document-fragment transclusion | |
CN105138683A (en) | Method and system for converting JSON data into two-dimensional array | |
CN107239492A (en) | XML document is converted to the method and device that object, object are converted to XML document | |
CN106980619B (en) | Data query method and device | |
CN102411602A (en) | Extensive makeup language (XML) parallel speculation analysis method realized on basis of field programmable gate array (FPGA) | |
CN104750853A (en) | Method and device for searching heterogeneous data | |
US20070174241A1 (en) | Match graphs for query evaluation | |
US8086561B2 (en) | Document searching system and document searching method | |
US8171040B2 (en) | Method and system for navigation of a data structure | |
CN103021437A (en) | Method for processing extensible makeup language (XML) data through blue-ray player | |
KR101097660B1 (en) | XML Query Processing Method On Wireless Broadcasting Stream | |
Brasoveanu et al. | In media res: a corpus for evaluating named entity linking with creative works | |
CN101986303A (en) | Digital television HSML analysis method and system applying DOM analysis engine | |
Bidoit et al. | Evaluating queries and updates on big xml documents | |
US20200142867A1 (en) | Intelligent pushing method and system for related contents of newly-created entries | |
KR100776823B1 (en) | Method for generating and selective receiving xml stream according to simple path query and apparatus thereof | |
US7805424B2 (en) | Querying nested documents embedded in compound XML documents | |
CN103377183A (en) | Method and device for typesetting repeatedly | |
KR20140056715A (en) | An apparatus for opinion mining based on hierarchical categories and a method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170215 |