CN102135978A - Hot spot markup language (HSML) parsing method and system for converting markup languages into extensive markup language (XML) - Google Patents

Hot spot markup language (HSML) parsing method and system for converting markup languages into extensive markup language (XML) Download PDF

Info

Publication number
CN102135978A
CN102135978A CN 201010569652 CN201010569652A CN102135978A CN 102135978 A CN102135978 A CN 102135978A CN 201010569652 CN201010569652 CN 201010569652 CN 201010569652 A CN201010569652 A CN 201010569652A CN 102135978 A CN102135978 A CN 102135978A
Authority
CN
China
Prior art keywords
xml
module
sgml
parsing
parsing module
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
CN 201010569652
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.)
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 201010569652 priority Critical patent/CN102135978A/en
Publication of CN102135978A publication Critical patent/CN102135978A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a hot spot markup language (HSML) parsing method and an HSML parsing system for converting markup languages into an extensive markup language (XML). The system comprises a user communication layer module, a markup language set module, a 2XML parsing module, an XML parsing module and an XML realization module, wherein the user communication layer module is used for providing a user interface and a developed markup language document; the markup language set module is used for processing a markup language set transmitted by the user communication layer module, and transmitting the processed markup language set to the 2XML parsing module; the 2XML parsing module parses and converts various markup languages into documents in an XML format, and transmitting the documents to the XML parsing module; the XML parsing module is used for parsing the XML documents, generating object codes and transmitting the object codes to the XML realization module; and the XML realization module is used for processing the object codes generated by the XML parsing module, and realizing the object codes in a bottom layer. The method is favorable for unifying bottom-layer parsing modules, improving the designing efficiency and shortening a development cycle.

Description

The HSML analytic method and the system that SGML are transferred to the XML language
Technical field
The present invention relates to digital home technical field, be specifically related to a kind of HSML analytic method and system that SGML is transferred to the XML language.
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, and on stream, what the programmer used is different all kinds of SGMLs, so that can not seek unity of standard in exploitation, increases development difficulty.And XML is a kind of highly organized language, uses more flexibly, handles convenient.Therefore, be necessary all kinds of SGMLs are converted into the language of XML form in resolving, make things convenient for the unification of the parsing module of bottom, also be beneficial to programmer's exploitation.
In research and practice process to the method, the inventor finds: if can use a kind of method that all kinds of SGMLs is converted into the HSML parsing of XML form language, all kinds of SGMLs are converted into the language of XML form earlier in resolving, and then carry out the parsing of bottom, to help unified bottom parsing module, improve the efficient of design, shorten the construction cycle.
Summary of the invention
The technical problem to be solved in the present invention provides and a kind ofly transfers SGML the HSML analytic method and the system of XML language to, can help unified bottom to resolve, and improves the efficient of design, shortens the construction cycle.
Technical scheme provided by the invention is as follows:
The invention provides a kind of HSML resolution system that SGML is transferred to the XML language:
This system comprises that communicate a layer module, SGML collection module 2XML parsing module module, XML parsing module and XML of user realizes module;
The described user layer module of communicating is used to provide user interface, and the marking language document of exploitation is provided;
Described SGML collection module be used for the SGML collection that process user communication layer module transmitted, and the SGML collection after will handling is transferred to the 2XML parsing module;
Described 2XML parsing module is resolved the document that is converted into the XML form with all kinds of SGMLs, is transferred to the XML parsing module then;
Described XML parsing module is used for XML document is resolved, and generates object code, so is transferred to XML and realizes module;
Described XML realizes module, is used for the object code that the processing XML parsing module generates, and these object codes is carried out the realization of bottom.
Optionally, described 2XML parsing module comprises template generator and 2XML analytics engine.
Optionally, described template generator, the user interface that is used to provide convenience makes behind the selected needed markup language content of user, with visual graphics mode, draws operation with mouse and finishes obtaining markup language content.
Optionally, described template generator loads different templates by the parser analytics engine, resolves and obtains corresponding results, and analysis result returns the character string of XML form and saves as specified file, for further processing.
The invention provides and a kind ofly transfer SGML the HSML analytic method of XML language to, comprising:
Provide user interface by user's layer module of communicating, and the marking language document of exploitation is provided;
By the communicate SGML collection of layer module transmission of SGML collection resume module user, and the SGML collection after will handling is transferred to the 2XML parsing module;
By the 2XML parsing module all kinds of SGMLs are resolved the document that is converted into the XML form, be transferred to the XML parsing module then;
By the XML parsing module XML document is resolved, and generate object code, so be transferred to XML and realize module;
Realize the object code that resume module XML parsing module generates by XML, these object codes are carried out the realization of bottom.
Optionally, described 2XML parsing module comprises template generator and 2XML analytics engine, and described template generator loads different templates by the parser analytics engine, resolves and obtains corresponding results, analysis result returns the character string of XML form and saves as specified file, for further processing.
Technique scheme is as can be seen:
Because the embodiment of the invention adopts a kind of method that all kinds of SGMLs is converted into the HSML parsing of XML form language, all kinds of SGMLs are converted into the language of XML form earlier in resolving, and then carry out the parsing of bottom, to help unified bottom parsing module, improve the efficient of design, shorten the construction cycle.
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 system architecture synoptic diagram figure of the present invention;
Fig. 2 is a 2XML parsing module system architecture diagram of the present invention;
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 HSML analytic method and system that SGML is transferred to the XML language, all kinds of SGMLs are converted into the language of XML form earlier in resolving, and then carry out the parsing of bottom, can help unified bottom parsing module, improve the efficient of design, shorten the construction cycle.
Below in conjunction with accompanying drawing the inventive method and system are elaborated respectively.
Fig. 1 is a system architecture synoptic diagram of the present invention.
According to the architecture design of layering, system of the present invention can be divided into five layer modules, is respectively: user's layer module 101 of communicating; SGML collection module 102; 2XML parsing module 103; XML parsing module 104; XML realizes module 105.
As shown in Figure 1, top layer is user's layer module 101 of communicating.It upwards carries out providing user interface alternately with the developer, provides marking language document for lower floor's SGML collection module 102 downwards.The developer is responsible for development in that this layer is main, and the marking language document of exploitation is provided, and the SGML collection module 102 of giving lower floor handles, and SGML can be multilingual, as HTML etc.
SGML collection module 102, the SGML collection that the process user that makes progress communication layer module 101 paid, the downward 2XML parsing module 103 that the SGML collection of handling is consigned to lower floor.User's SGML that layer module 101 generate of communicating is handled at this layer, identification and certification mark language, occur marking language document after wrong words then will be handled pay under the 2XML of lower floor parsing module 103.
2XML parsing module 103 is cores of the present invention, the main language of being responsible for all kinds of SGMLs are resolved to the XML form.It is upwards handled the upper strata and pays all kinds of SGMLs that get off, by resolving, is converted into the document of XML form at this layer, and the XML document after will transforming downwards then consigns to the XML of lower floor parsing module 104.
XML parsing module 104, main being responsible for resolved the XML document that upper strata 2XML parsing module 103 is paid, and generates object code, and the XML realization module 105 that then object code is consigned to lower floor is handled.
Last one deck is that XML realizes module 105, the main object code of being responsible for handling 104 generations of upper strata XML parsing module, these object codes are carried out the realization of bottom, the developer carries out the exploitation of all kinds of SGMLs on the upper strata, finally be converted into the language of unified XML form then, at this layer xml code realized at last.
For further specifying the present invention all kinds of SGMLs are converted into the analytic method of XML form language, existing 2XML parsing module system architecture diagram in conjunction with Fig. 2 further specifies.
As shown in Figure 2, the 2XML parsing module mainly comprises two parts: template generator and 2XML analytics engine.
By this 2XML analytics engine that all kinds of SGMLs are generated the template generator of XML and all kinds of SGMLs resolved to XML form language, with the data in the making language document, according to directive document, be converted to the XML formatted data, further handle for other application programs.
All kinds of SGMLs are converted into the template generator of XML tag language, the user interface that can provide convenience.All kinds of markup language content editorial staffs behind the selected needed markup language content, with visual graphics mode, draw operation with mouse and can finish obtaining markup language content.The user needn't understand the source code of institute's editing markup language file.After preserving edited result, can generate parsing template and DEMO analysis result at such making language document.
The 2XML analytics engine is supported two kinds of user interface: Service and API.The Service interface does not need the user that darker programming experience is arranged; The API interface provides DLL (dynamic link library) more flexibly for the developer.
Template user of service loads different templates by the parser analytics engine when the concrete application of exploitation, resolve and obtain corresponding results.Analysis result returns the character string of XML form and saves as specified file, for further processing.If the template loading makes a mistake or the developer does not specify template, analytics engine is then handled by the mode of no template.At this moment, analytics engine is resolved all data in the XML file.
By foregoing description, can see that method for designing of the present invention has following characteristics:
1, the markup language page of target can be static, also can dynamically generate;
2, provide visual interface to allow user's pull-alongs select the page elements that need obtain;
3, Shu Chu mode can be that static information also can be a dynamical fashion;
4, can store, edit and call in map information;
5, the description of mapping ruler has extendability based on XML.
Technique scheme is as can be seen:
Because the embodiment of the invention adopts a kind of method that all kinds of SGMLs is converted into the HSML parsing of XML form language, all kinds of SGMLs are converted into the language of XML form earlier in resolving, and then carry out the parsing of bottom, to help unified bottom parsing module, improve the efficient of design, shorten the construction cycle.
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: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than to the HSML analytic method and the system that SGML are transferred to the XML language that the embodiment of the invention provided, be described in detail, used specific case herein principle of the present invention and embodiment 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 (6)

1. one kind transfers SGML the HSML resolution system of XML language to, it is characterized in that:
This system comprises that communicate a layer module, SGML collection module, 2XML parsing module module, XML parsing module and XML of user realizes module;
The described user layer module of communicating is used to provide user interface, and the marking language document of exploitation is provided;
Described SGML collection module be used for the SGML collection that process user communication layer module transmitted, and the SGML collection after will handling is transferred to the 2XML parsing module;
Described 2XML parsing module is resolved the document that is converted into the XML form with all kinds of SGMLs, is transferred to the XML parsing module then;
Described XML parsing module is used for XML document is resolved, and generates object code, so is transferred to XML and realizes module;
Described XML realizes module, is used for the object code that the processing XML parsing module generates, and these object codes is carried out the realization of bottom.
2. according to claim 1ly transfer SGML the HSML resolution system of XML language to, it is characterized in that:
Described 2XML parsing module comprises template generator and 2XML analytics engine.
3. according to claim 2ly transfer SGML the HSML resolution system of XML language to, it is characterized in that:
Described template generator, the user interface that is used to provide convenience makes behind the selected needed markup language content of user, with visual graphics mode, draws operation with mouse and finishes obtaining markup language content.
4. according to claim 3ly transfer SGML the HSML resolution system of XML language to, it is characterized in that:
Described template generator loads different templates by the parser analytics engine, resolves and obtains corresponding results, and analysis result returns the character string of XML form and saves as specified file, for further processing.
5. one kind transfers SGML the HSML analytic method of XML language to, it is characterized in that, comprising:
Provide user interface by user's layer module of communicating, and the marking language document of exploitation is provided;
By the communicate SGML collection of layer module transmission of SGML collection resume module user, and the SGML collection after will handling is transferred to the 2XML parsing module;
By the 2XML parsing module all kinds of SGMLs are resolved the document that is converted into the XML form, be transferred to the XML parsing module then;
By the XML parsing module XML document is resolved, and generate object code, so be transferred to XML and realize module;
Realize the object code that resume module XML parsing module generates by XML, these object codes are carried out the realization of bottom.
6. according to claim 5ly transfer SGML the HSML analytic method of XML language to, it is characterized in that:
Described 2XML parsing module comprises template generator and 2XML analytics engine;
Described template generator loads different templates by the parser analytics engine, resolves to obtain corresponding results, and analysis result returns the character string of XML form and saves as specified file, for further processing.
CN 201010569652 2010-11-30 2010-11-30 Hot spot markup language (HSML) parsing method and system for converting markup languages into extensive markup language (XML) Pending CN102135978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010569652 CN102135978A (en) 2010-11-30 2010-11-30 Hot spot markup language (HSML) parsing method and system for converting markup languages into extensive markup language (XML)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010569652 CN102135978A (en) 2010-11-30 2010-11-30 Hot spot markup language (HSML) parsing method and system for converting markup languages into extensive markup language (XML)

Publications (1)

Publication Number Publication Date
CN102135978A true CN102135978A (en) 2011-07-27

Family

ID=44295766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010569652 Pending CN102135978A (en) 2010-11-30 2010-11-30 Hot spot markup language (HSML) parsing method and system for converting markup languages into extensive markup language (XML)

Country Status (1)

Country Link
CN (1) CN102135978A (en)

Cited By (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
CN111581948A (en) * 2020-04-03 2020-08-25 北京百度网讯科技有限公司 Document analysis method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904885A (en) * 2005-07-29 2007-01-31 北京航空航天大学 Database adapter

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904885A (en) * 2005-07-29 2007-01-31 北京航空航天大学 Database adapter

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《http://manpages.ubuntu.com/manpages/lucid/man1/2xml.1.html》 20080207 Dustin Kirkland xml2 - convert xml documents in a flat format 1 1-6 , *
《第一届全国Web信息系统及其应用会议(WISA2004)论文集》 20041231 李丹等 XML数据转换中间件在税务数据交换上的应用 352-357 1-6 , *

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
CN111581948A (en) * 2020-04-03 2020-08-25 北京百度网讯科技有限公司 Document analysis method, device, equipment and storage medium
CN111581948B (en) * 2020-04-03 2024-02-09 北京百度网讯科技有限公司 Document analysis method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108491205B (en) Front-end webpage development method and system based on component tree
US7694284B2 (en) Shareable, bidirectional mechanism for conversion between object model and XML
US9400784B2 (en) Integrated application localization
CN102982010B (en) The method and apparatus extracting file structure
US8086618B2 (en) Configuration rule translation mapper
CN105786526A (en) Web-based efficient flow chart drawing system and method
CN104484216A (en) Method and device for generating service interface document and on-line test tool
CN1529849A (en) Method and apparatus for compitation of interpretative language for interactive television
CN103970737A (en) Data constitution method and device
CN110187916B (en) Method for generating Word document based on data configuration
CN104407863A (en) Abstract control model programming device and method
CN112100550A (en) Page construction method and device
CN105975446A (en) Method and system for displaying word document content by modules in mobile phone terminal
CN110007924A (en) The automated construction method and system of YANG model configuration interface
CN102186114B (en) ETL (Extraction Transformation and Loading) based digital television interactive application middleware
Kazoun et al. Programming Flex 2: The Comprehensive Guide to Creating Rich Internet Applications with Adobe Flex
WO2005098660A1 (en) Document processing device and document processing method
WO2005098658A1 (en) Document processing device and document processing method
KR101552914B1 (en) Web server application framework web application processing method using the framework and computer readable medium processing the method
CN102135978A (en) Hot spot markup language (HSML) parsing method and system for converting markup languages into extensive markup language (XML)
CN101986303A (en) Digital television HSML analysis method and system applying DOM analysis engine
CN102065338A (en) Digital television interaction service tag language resolution method and system
CN109947711A (en) A kind of multilingual file automating management method in pair of IOS project development process
CN117234529A (en) Method for generating API (application program interface) based on DSL (digital subscriber line) analytic resources
CN102006512B (en) Digital television HSML (Hypertext Service Markup Language) analysis method and system applying SAX (The Simple API for XML) analysis engine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110727