CN102006512B - Digital television HSML (Hypertext Service Markup Language) analysis method and system applying SAX (The Simple API for XML) analysis engine - Google Patents

Digital television HSML (Hypertext Service Markup Language) analysis method and system applying SAX (The Simple API for XML) analysis engine Download PDF

Info

Publication number
CN102006512B
CN102006512B CN 201010528817 CN201010528817A CN102006512B CN 102006512 B CN102006512 B CN 102006512B CN 201010528817 CN201010528817 CN 201010528817 CN 201010528817 A CN201010528817 A CN 201010528817A CN 102006512 B CN102006512 B CN 102006512B
Authority
CN
China
Prior art keywords
sax
document
hsml
analytics engine
xml
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.)
Expired - Fee Related
Application number
CN 201010528817
Other languages
Chinese (zh)
Other versions
CN102006512A (en
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.)
GUANGDONG XINGHAI DIGITAL HOME INDUSTRY TECHNOLOGY RESEARCH INSTITUTE Co Ltd
Original Assignee
GUANGDONG XINGHAI DIGITAL HOME INDUSTRY TECHNOLOGY RESEARCH INSTITUTE 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 GUANGDONG XINGHAI DIGITAL HOME INDUSTRY TECHNOLOGY RESEARCH INSTITUTE Co Ltd filed Critical GUANGDONG XINGHAI DIGITAL HOME INDUSTRY TECHNOLOGY RESEARCH INSTITUTE Co Ltd
Priority to CN 201010528817 priority Critical patent/CN102006512B/en
Publication of CN102006512A publication Critical patent/CN102006512A/en
Application granted granted Critical
Publication of CN102006512B publication Critical patent/CN102006512B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a digital television HSML (Hypertext Service Markup Language) analysis system applying an SAX (Simple API for XML) analysis engine, comprising an HSML2XML analysis engine, an SAX analysis engine and an objective document processing module, wherein the HSML2XML analysis engine is used for analyzing the digital television HSML into an XML (Extensive Makeup Language) and then sending an XML format document to the SAX analysis engine; the SAX analysis engine is used for reading the XML format document and analyzing by following the analysis mechanism being owned by SAX and taking event processing as the core; the objective document processing module is used for converting the XML document analyzed by the SAX analysis engine into a document which can be identified by a set top box and sending the document to the set top box for processing. The technical scheme provided by the invention can conveniently and rapidly analyze the HSML and shorten the developing period of developing staff and the program running time.

Description

Use Digital Television HSML analytic method and the system of SAX analytics engine
Technical field
The present invention relates to digital home technical field, be specifically related to a kind of Digital Television HSML analytic method and system of the SAX of application analytics engine.
Background technology
In recent years, the development of digital home's technology is more and more faster, yet, Digital Television Shortcomings still aspect interactive service.In the existing digital television business, except traditional basic interactive service such as video request program, program guide, other interactive services are less, still need strengthen at aspects such as TV commercial affairs, information services.Its main cause is also to lack one for the standard of digital television interaction business service information at present, has seriously hindered the information butt joint between platform provider and the numerous content and service provider.
Markup language of digital television interactive service (HSML) standard is expanded the XML language, formulation is for the markup language of digital television interactive service, business presents and information interaction is described to carrying out towards the digital television interactive service of the integration of three networks in realization, be convenient to adopt Intel Virtualization Technology that needed cross-domain sharing with the Integration Services content carried out the function extraction with abstract, in order to break through this bottleneck of current interactive service content and the high degree of coupling of digital TV platform, realize the high speed development of the high-end value-added service of sized enterprises in chinese DTV industry.
Yet current HSML technology does not also have perfect, in the HSML analytics engine, does not have a kind of effective analytics engine method, can resolve HSML quickly and easily.
The SAX analytics engine is one, and it is a kind of analytics engine based on event for the treatment of XML event driven " pushing away " model, and core is event processing module.The SAX resolver can provide better performance advantage, and it provides the effective rudimentary access to the XML document content.The advantage of SAX model maximum is that memory consumption is little, because whole document need not once to be loaded in the internal memory, this makes the SAX resolver can resolve document greater than Installed System Memory.In addition, need not as among the DOM, creating object for all nodes.At last, SAX " pushes away " model and can be used for broadcast environment, can register simultaneously a plurality of contents processing person ContentHandler, the parallel receive event, rather than in a pipeline, process one by one.
In the research and practice process to the method, the present inventor finds:
If a kind of method is provided, increase the resolver of a kind of HSML2XML, then the SAX analytics engine is applied in the Digital Television HSML analytics engine and goes, then can resolve HSML easily and quickly, shorten developer's construction cycle and program runtime.
Summary of the invention
Digital Television HSML analytic method and system that the technical problem to be solved in the present invention provides a kind of SAX of application analytics engine can resolve HSML easily and quickly, shorten developer's construction cycle and program runtime.
Technical scheme provided by the invention is as follows:
The invention provides a kind of Digital Television HSML resolution system of the SAX of application analytics engine:
This system comprises: HSML2XML analytics engine, SAX analytics engine and destination document processing module;
Described HSML2XML analytics engine, then the language for digital television interactive service mark HSML language being resolved to the XML form sends to the XML format file described SAX analytics engine;
Described SAX analytics engine is used for reading described XML format file and resolving, and follows the distinctive mechanism for resolving take event handling as core of SAX during described parsing;
Described destination document processing module, the XML document after being used for the SAX analytics engine resolved are converted into the document that can be identified by set-top box, and send to set-top box processes.
Described SAX analytics engine comprises: SAX mechanism for resolving module, SAX resolver, XML document module;
SAX mechanism for resolving in the described SAX mechanism for resolving module is followed the distinctive mechanism for resolving take event handling as core of SAX, comprising the treatment mechanism that pair document is arranged with to the treatment mechanism of event;
Described SAX resolver is used for loading the SAX mechanism for resolving and formulates resolution rules, reads XML document and resolves;
Described XML document module is for the XML document after the storing and resolving.
Described SAX resolver comprises the SAX reader, is responsible for contents processing, mistake processing, DTO processing, four parts of entity decomposition.
The operating process of described SAX resolver comprises:
Contents processing, the information of main processing XML document aspect is carried out the inspection analysis of syntax and semantics;
Mistake is processed, and the mistake that main processing XML document occurs comprises the mistake of semantic and grammer aspect;
DTO processes, and namely the transfer of data object handles is carried out far call by Transfer Parameters;
Entity decomposes, and mainly is that the entity that defines in the XML document is decomposed, and is decomposed into the most basic data structure, then resolves.
The present invention also provides a kind of Digital Television HSML analytic method of the SAX of application analytics engine, comprising:
1) enters system;
2) encode, write the HSML document;
3) system processes the HSML document, judges that whether this document makes mistakes, and as not makeing mistakes, enters 4);
4) generate the HSML document;
5) the HSML document that generates sends to the HSML2XML resolver and resolves;
Whether 6) the HSML2XML resolver is judged, judge in the resolving and make a mistake, as do not have mistake, then enters 7);
7) generate XML document;
8) give the SAX analytics engine with the XML document that generates and process, the SAX analytics engine will be resolved XML document;
Whether 9) the SAX resolver is judged in the process of resolving, see and make a mistake, as do not have mistake, then enters 10);
10) generate destination document;
11) destination document is processed, generation can run on the document of set top box operations system;
12) document that previous step is generated is given the set top box operations system and is processed;
13) finish.
Technique scheme can be found out: because the embodiment of the invention adopts a kind of method that the SAX analytics engine is applied to Digital Television HSML analytics engine, increase the resolver of a kind of HSML2XML, then the SAX analytics engine is applied in the Digital Television HSML analytics engine and goes, therefore can resolve HSML easily and quickly, shorten developer's construction cycle and program runtime.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the system organization structure chart that the present invention is applied to SAX the HSML analytics engine;
Fig. 2 is the method flow diagram that the present invention is applied to SAX the HSML analytics engine.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtain under the creative work prerequisite.
The embodiment of the invention provides a kind of method that the SAX analytics engine is applied to Digital Television HSML analytics engine, can increase the resolver of a kind of HSML2XML, then the SAX analytics engine is applied in the Digital Television HSML analytics engine and goes, easily and quickly HSML is resolved, shorten developer's construction cycle and program runtime.Below be elaborated respectively.
Below in conjunction with accompanying drawing the present invention program is elaborated respectively.
Fig. 1 is the system organization structure chart that SAX is applied to the HSML analytics engine of the present invention.
As shown in Figure 1, the institutional framework of native system mainly comprises three parts: HSML2XML analytics engine, SAX analytics engine and destination document processing module.
The HSML2XML analytics engine, then the main language of being responsible for Digital Television HSML language is resolved to the XML form is given the XML format file SAX analytics engine and is processed.HSML but is different in format standard with XML language comparing class seemingly, so will carry out HSML2XML between the SAX analytics engine and resolve entering, the document of HSML is converted into the document of XML.
The SAX analytics engine mainly comprises three each and every one parts: SAX mechanism for resolving module, SAX resolver, XML document module.
SAX mechanism for resolving in the SAX mechanism for resolving is followed the distinctive mechanism for resolving take event handling as core of SAX, comprising the treatment mechanism that pair document is arranged with to the treatment mechanism of event.The SAX mechanism for resolving is loaded in the SAX resolver, for the SAX resolver.
The SAX resolver reads on the one hand XML document and resolves, and loads on the other hand the SAX mechanism for resolving and formulates resolution rules.Wherein, the SAX resolver comprises the SAX reader, mainly is responsible for contents processing, mistake processing, DTO processing, four parts of entity decomposition.
The information of the main processing XML document of contents processing aspect is carried out the inspection analysis of syntax and semantics;
Mistake is processed the mistake that main processing XML document occurs, and comprises the mistake of semantic and grammer aspect;
DTO processes, and namely the transfer of data object handles can be carried out far call by Transfer Parameters;
It mainly is that the entity that defines in the XML document is decomposed that entity decomposes, and is decomposed into the most basic data structure, then resolves.
XML document in the SAX analytics engine is from the HSML2XML analytics engine, and the XML document of parsing will consign to the SAX analytics engine and process.
The XML document module is for the XML document after the storing and resolving.
The 3rd part of native system is the destination document processing module.
The destination document processing module is used for destination document is converted into the document that can be identified by set-top box.Destination document after the SAX resolver resolves can not be identified by the set top box operations system, so before entering the set top box operations system, will be carried out by the destination document processing module processing of destination document, destination document is converted into the document that to be identified by set-top box, and then transfers to the set top box operations system and process.
For further specifying concrete operation method of the present invention, now describe about the operational flowchart that the SAX analytics engine is applied to Digital Television HSML analytics engine in conjunction with Fig. 2.
As shown in Figure 2, comprise step:
1) at first the developer enters system and develops work.
2) developer begins to encode, and writes the HSML document.
3) then system begins the HSML document is processed, and judges that whether this document makes mistakes, and as not makeing mistakes, enters 4), as make mistakes, previous step returned.
4) generate the HSML document, enter next step.
5) the HSML document that generates will be given the HSML2XML resolver and resolve.
Whether 6) then the HSML2XML resolver is judged, judge in the resolving and make a mistake, as do not have mistake, then enters 7), as make mistakes, previous step returned.
7) generate XML document, enter next step.
8) give the SAX analytics engine with the XML document that generates and process, the SAX analytics engine will be resolved XML document.
Whether 9) the SAX resolver is judged in the process of resolving, see and make a mistake, as do not have mistake, then enters 10), as make mistakes, previous step returned.
10) generate destination document, enter next step.
11) destination document is processed, generation can run on the document of set top box operations system.
12) document that previous step is generated is given the set top box operations system and is processed.
13) finish.
In sum:
Because the embodiment of the invention adopts a kind of method that the SAX analytics engine is applied to Digital Television HSML analytics engine, increase the resolver of a kind of HSML2XML, then the SAX analytics engine is applied in the Digital Television HSML analytics engine and goes, therefore can resolve HSML easily and quickly, shorten developer's construction cycle and program runtime.
Need to prove, the contents such as the information interaction between said apparatus and intrasystem each unit, implementation since with the inventive method embodiment based on same design, particular content can referring to the narration among the inventive method embodiment, repeat no more herein.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the relevant hardware of instruction finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
Digital Television HSML analytic method and the system of the above a kind of SAX of application analytics engine that the embodiment of the invention is provided, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (4)

1. markup language of digital television interactive service HSML resolution system of using the SAX analytics engine is characterized in that:
This system comprises: HSML2XML analytics engine, SAX analytics engine and destination document processing module;
Described HSML2XML analytics engine, then the language for digital television interactive service mark HSML language being resolved to the XML form sends to the XML format file described SAX analytics engine;
Described SAX analytics engine is used for reading described XML format file and resolving, and follows the distinctive mechanism for resolving take event handling as core of SAX during described parsing;
Described destination document processing module, the XML document after being used for the SAX analytics engine resolved are converted into the document that can be identified by set-top box, and send to set-top box processes.
2. the Digital Television HSML resolution system of application according to claim 1 SAX analytics engine is characterized in that:
Described SAX analytics engine comprises: SAX mechanism for resolving module, SAX resolver, XML document module;
SAX mechanism for resolving in the described SAX mechanism for resolving module is followed the distinctive mechanism for resolving take event handling as core of SAX, comprising the treatment mechanism that pair document is arranged with to the treatment mechanism of event;
Described SAX resolver is used for loading the SAX mechanism for resolving and formulates resolution rules, reads XML document and resolves;
Described XML document module is for the XML document after the storing and resolving.
3. the Digital Television HSML resolution system of application according to claim 2 SAX analytics engine is characterized in that:
Described SAX resolver comprises the SAX reader, is responsible for contents processing, mistake processing, transfer of data object DTO processing, four parts of entity decomposition.
4. it is characterized in that according to claim 2 or the Digital Television HSML resolution systems of 3 described application SAX analytics engines:
The operating process of described SAX resolver comprises:
Contents processing for the treatment of the information of XML document aspect, is carried out the inspection analysis of syntax and semantics;
Mistake is processed, and for the treatment of the mistake that XML document occurs, comprises the mistake of semantic and grammer aspect;
DTO processes, and namely the transfer of data object handles is carried out far call by Transfer Parameters;
Entity decomposes, and mainly is that the entity that defines in the XML document is decomposed, and is decomposed into the most basic data structure, then resolves.
CN 201010528817 2010-10-29 2010-10-29 Digital television HSML (Hypertext Service Markup Language) analysis method and system applying SAX (The Simple API for XML) analysis engine Expired - Fee Related CN102006512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010528817 CN102006512B (en) 2010-10-29 2010-10-29 Digital television HSML (Hypertext Service Markup Language) analysis method and system applying SAX (The Simple API for XML) analysis engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010528817 CN102006512B (en) 2010-10-29 2010-10-29 Digital television HSML (Hypertext Service Markup Language) analysis method and system applying SAX (The Simple API for XML) analysis engine

Publications (2)

Publication Number Publication Date
CN102006512A CN102006512A (en) 2011-04-06
CN102006512B true CN102006512B (en) 2013-03-27

Family

ID=43813518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010528817 Expired - Fee Related CN102006512B (en) 2010-10-29 2010-10-29 Digital television HSML (Hypertext Service Markup Language) analysis method and system applying SAX (The Simple API for XML) analysis engine

Country Status (1)

Country Link
CN (1) CN102006512B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354489A (en) * 2016-08-19 2017-01-25 成都卓影科技股份有限公司 EPG engine and page parsing method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102637129A (en) * 2012-03-14 2012-08-15 中山大学 System and method for applying DOM4j parsing engine to digital television HSML parsing engine
CN108427676A (en) * 2017-02-13 2018-08-21 北京新云胜科技有限公司 A kind of method that XML tag is quickly positioned and handled

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783090A (en) * 2004-11-30 2006-06-07 国际商业机器公司 Sharable two way method and system for switching between object model and XML
CN1871600A (en) * 2003-10-31 2006-11-29 株式会社爱可信 Method, program and device for rendering web page

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4735068B2 (en) * 2005-06-15 2011-07-27 沖電気工業株式会社 COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMMUNICATION DEVICE

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1871600A (en) * 2003-10-31 2006-11-29 株式会社爱可信 Method, program and device for rendering web page
CN1783090A (en) * 2004-11-30 2006-06-07 国际商业机器公司 Sharable two way method and system for switching between object model and XML

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354489A (en) * 2016-08-19 2017-01-25 成都卓影科技股份有限公司 EPG engine and page parsing method
CN106354489B (en) * 2016-08-19 2019-09-17 成都卓影科技股份有限公司 A kind of EPG engine and page parsing method

Also Published As

Publication number Publication date
CN102006512A (en) 2011-04-06

Similar Documents

Publication Publication Date Title
JP7326510B2 (en) Efficient state machines for real-time dataflow programming
US20090313613A1 (en) Methods and Apparatus for Automatic Translation of a Computer Program Language Code
US8806452B2 (en) Transformation of computer programs and eliminating errors
CN104168250B (en) Business Process Control method and device based on CGI frames
US9477651B2 (en) Finding partition boundaries for parallel processing of markup language documents
TWI525543B (en) Hybrid dynamic code compiling device, method, and service system thereof
CN110286917A (en) File packing method, device, equipment and storage medium
CN111831538A (en) Debugging method, device and storage medium
CN102006512B (en) Digital television HSML (Hypertext Service Markup Language) analysis method and system applying SAX (The Simple API for XML) analysis engine
US11573790B2 (en) Generation of knowledge graphs based on repositories of code
CN113778897B (en) Automatic test method, device and equipment for interface and storage medium
CN107547944A (en) Interface realizing method and device, set top box
CN101986303A (en) Digital television HSML analysis method and system applying DOM analysis engine
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
US8607201B2 (en) Augmenting visualization of a call stack
CN114637499A (en) Visualization component processing method, device, equipment and medium
CN102033905A (en) Document-based hot spot markup language (HSML) resolving method and system
Deng et al. Combinatorial testing on implementations of html5 support
CN101446968B (en) Method for parsing extend markup language
Lavorato et al. LL (k) optimization of a network protocol parser generator.
CN102135978A (en) Hot spot markup language (HSML) parsing method and system for converting markup languages into extensive markup language (XML)
CN102637129A (en) System and method for applying DOM4j parsing engine to digital television HSML parsing engine
CN117111933A (en) Front-end code generation method, device and computer readable storage medium
CN116107588A (en) Program language conversion method, apparatus, device, medium, and program product
Singh PyKaldi: A Kaldi Wrapper in Python

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130327

Termination date: 20151029

EXPY Termination of patent right or utility model