[go: up one dir, main page]

CN102006512A - 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
CN102006512A
CN102006512A CN 201010528817 CN201010528817A CN102006512A CN 102006512 A CN102006512 A CN 102006512A CN 201010528817 CN201010528817 CN 201010528817 CN 201010528817 A CN201010528817 A CN 201010528817A CN 102006512 A CN102006512 A CN 102006512A
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.)
Granted
Application number
CN 201010528817
Other languages
Chinese (zh)
Other versions
CN102006512B (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

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

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 the 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 still there is deficiency in Digital Television aspect interactive service.In the existing digital television business, except that 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 a standard at 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.
Digital television interactive service mark language (HSML) standard is expanded the XML language, formulation is at the SGML 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 integrated service content carried out the function extraction with abstract, in order to break through this bottleneck of the 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 Digital Television 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 is used for processing XML event driven " pushing away " model, and it is a kind of analytics engine based on incident, and core is an event processing module.The SAX resolver can provide the more performance advantage, and it provides the effective rudimentary visit to the XML document content.SAX model biggest advantage is that memory consumption is little, because entire 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 in DOM, to create object for all nodes.At last, SAX " pushes away " model and can be used for broadcast environment, can register a plurality of contents processing person ContentHandler simultaneously, the parallel receive incident, rather than in a pipeline, handle one by one.
In research and practice process to the method, the present inventor finds:
A kind of method if can be provided, increase the resolver of a kind of HSML2XML, the SAX analytics engine is applied in the Digital Television HSML analytics engine go then, 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 is used for digital television interactive service mark HSML language is resolved to the language of XML form, then the XML format file is sent to described SAX analytics engine;
Described SAX analytics engine is used to read described XML format file and resolves, and following SAX distinctive during described parsing is the mechanism for resolving of core with the event handling;
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 discerned 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;
It is the mechanism for resolving of core with the event handling that SAX mechanism for resolving in the described SAX mechanism for resolving module is followed SAX distinctive, comprising the treatment mechanism that pair document is arranged with to the treatment mechanism of incident;
Described SAX resolver is used to load the SAX mechanism for resolving and formulates resolution rules, reads XML document and resolves;
Described XML document module is used for the XML document after the storing and resolving.
Described SAX resolver comprises the SAX reader, is responsible for contents processing, fault 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;
Fault processing, the mistake that main processing XML document takes place comprises the mistake of semantic and grammer aspect;
DTO handles, and promptly the transfer of data object handles is carried out far call by transmitting parameter;
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, resolves then.
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 handles 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 of Sheng Chenging 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 handle, 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 handled, generation can run on the document of set top box operations system;
12) giving the set top box operations system with the document of previous step generation handles;
13) finish.
Technique scheme is as can be seen: 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, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
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 obtained 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, 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 then and is handled.HSML but is different on 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.
It is the mechanism for resolving of core with the event handling that SAX mechanism for resolving in the SAX mechanism for resolving is followed SAX distinctive, comprising the treatment mechanism that pair document is arranged with to the treatment mechanism of incident.The SAX mechanism for resolving is loaded in the SAX resolver, uses for the SAX resolver.
The SAX resolver reads XML document on the one hand and resolves, and loads the SAX mechanism for resolving on the other hand and formulates resolution rules.Wherein, the SAX resolver comprises the SAX reader, mainly is responsible for contents processing, fault 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;
The mistake that the main processing XML document of fault processing takes place comprises the mistake of semantic and grammer aspect;
DTO handles, and promptly the transfer of data object handles can be carried out far call by transmitting parameter;
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, resolves then.
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 handle.
The XML document module is used 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 discerned by set-top box.Destination document after the SAX resolver resolves can not be discerned by the set top box operations system, so before entering the set top box operations system, will carry out the processing of destination document by the destination document processing module, destination document is converted into the document that can be discerned by set-top box, and then transfers to the set top box operations system handles.
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) system begins the HSML document is handled then, 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 of Sheng Chenging will be given the HSML2XML resolver and resolve.
Whether 6) the HSML2XML resolver is judged then, 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 handle, 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 handled, generation can run on the document of set top box operations system.
12) giving the set top box operations system with the document of previous step generation handles.
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, 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 repeat no more referring to the narration among the inventive method embodiment herein.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to 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.
More than to the Digital Television HSML analytic method and the system of a kind of SAX of application analytics engine that the embodiment of the invention 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, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (5)

1. Digital Television 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 is used for digital television interactive service mark HSML language is resolved to the language of XML form, then the XML format file is sent to described SAX analytics engine;
Described SAX analytics engine is used to read described XML format file and resolves, and following SAX distinctive during described parsing is the mechanism for resolving of core with the event handling;
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 discerned by set-top box, and send to set-top box processes.
2. the Digital Television HSML resolution system of application SAX analytics engine according to claim 1 is characterized in that:
Described SAX analytics engine comprises: SAX mechanism for resolving module, SAX resolver, XML document module;
It is the mechanism for resolving of core with the event handling that SAX mechanism for resolving in the described SAX mechanism for resolving module is followed SAX distinctive, comprising the treatment mechanism that pair document is arranged with to the treatment mechanism of incident;
Described SAX resolver is used to load the SAX mechanism for resolving and formulates resolution rules, reads XML document and resolves;
Described XML document module is used for the XML document after the storing and resolving.
3. the Digital Television HSML resolution system of application SAX analytics engine according to claim 2 is characterized in that:
Described SAX resolver comprises the SAX reader, is responsible for contents processing, fault processing, DTO processing, four parts of entity decomposition.
4. according to the Digital Television HSML resolution system of claim 2 or 3 described application SAX analytics engines, it is characterized in that:
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;
Fault processing, the mistake that main processing XML document takes place comprises the mistake of semantic and grammer aspect;
DTO handles, and promptly the transfer of data object handles is carried out far call by transmitting parameter;
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, resolves then.
5. a Digital Television HSML analytic method of using the SAX analytics engine is characterized in that, comprising:
1) enters system;
2) encode, write the HSML document;
3) system handles 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 of Sheng Chenging 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 handle, 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 handled, generation can run on the document of set top box operations system;
12) giving the set top box operations system with the document of previous step generation handles;
13) finish.
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 true CN102006512A (en) 2011-04-06
CN102006512B 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 (3)

* 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
CN106354489A (en) * 2016-08-19 2017-01-25 成都卓影科技股份有限公司 EPG engine and page parsing method
CN108427676A (en) * 2017-02-13 2018-08-21 北京新云胜科技有限公司 A kind of method that XML tag is quickly positioned and handled

Citations (3)

* 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
US20070011191A1 (en) * 2005-06-15 2007-01-11 Oki Electric Industry Co., Ltd. Application management for utilizing a replication engine of a Web-AP server to execute SIP replication

Patent Citations (3)

* 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
US20070011191A1 (en) * 2005-06-15 2007-01-11 Oki Electric Industry Co., Ltd. Application management for utilizing a replication engine of a Web-AP server to execute SIP replication

Cited By (4)

* 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
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
CN108427676A (en) * 2017-02-13 2018-08-21 北京新云胜科技有限公司 A kind of method that XML tag is quickly positioned and handled

Also Published As

Publication number Publication date
CN102006512B (en) 2013-03-27

Similar Documents

Publication Publication Date Title
JP7371141B2 (en) Tools and methods for real-time dataflow programming languages
CN1529849B (en) Method and apparatus for compiling of interpretative language for interactive television
CN106648945B (en) Interface data testing method and device and electronic equipment
CN104168250B (en) Business Process Control method and device based on CGI frames
CN101699397A (en) Method for binding Java and XML data
CN110286917A (en) File packing method, device, equipment and storage medium
CN101976188A (en) OpenApi data automatic loading system oriented to AJAX protocol
CN102289593A (en) Multidisciplinary virtual experiment interactive simulation solution system
TW201520897A (en) Hybrid dynamic code compiling device, method, and service system thereof
CN102203734B (en) Conditional processing method and apparatus
CN117492768A (en) Implementation method and system for cross-platform deployment of user network modalities based on abstract resource analysis
CN101763432A (en) Method for constructing lightweight webpage dynamic view
CN102006512B (en) Digital television HSML (Hypertext Service Markup Language) analysis method and system applying SAX (The Simple API for XML) analysis engine
CN102186114B (en) ETL (Extraction Transformation and Loading) based digital television interactive application middleware
CN116756184B (en) Database instance processing methods, devices, equipment, storage media and program products
CN101393554A (en) Method and device for converting IDL information to OWL information
CN102033905A (en) Document-based hot spot markup language (HSML) resolving method and system
CN101986303A (en) Digital television HSML analysis method and system applying DOM analysis engine
CN119311277A (en) Code generation method, device, equipment and storage medium
CN101446968B (en) Method for parsing extend markup language
CN103744687B (en) Access method and device for input/output port
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)
Liang et al. Accelerating page loads via streamlining JavaScript engine for distributed learning
CN114186101B (en) Data processing method, device, computer equipment and storage medium

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