CN102156742A - Method and middleware for supporting structured document display with own browser of mobile phone - Google Patents

Method and middleware for supporting structured document display with own browser of mobile phone Download PDF

Info

Publication number
CN102156742A
CN102156742A CN 201110097346 CN201110097346A CN102156742A CN 102156742 A CN102156742 A CN 102156742A CN 201110097346 CN201110097346 CN 201110097346 CN 201110097346 A CN201110097346 A CN 201110097346A CN 102156742 A CN102156742 A CN 102156742A
Authority
CN
China
Prior art keywords
file
document
mobile phone
html
browser
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 201110097346
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.)
BEIJING DIGITAL CHINA SI-TECH INFORMATION TECHNOLOGY Co Ltd
Beijing Si Tech Information Technology Co Ltd
Original Assignee
BEIJING DIGITAL CHINA SI-TECH INFORMATION TECHNOLOGY 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 BEIJING DIGITAL CHINA SI-TECH INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING DIGITAL CHINA SI-TECH INFORMATION TECHNOLOGY Co Ltd
Priority to CN 201110097346 priority Critical patent/CN102156742A/en
Publication of CN102156742A publication Critical patent/CN102156742A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a middleware for supporting a structured document display with an own browser of a mobile phone, comprising a middleware, wherein the middleware comprises an information receiving module for obtaining a document flow of a document file, a first analyzing module for analyzing the document flow read in into the document with XML (Extensive Makeup Language) format, a first converting module for converting the document with XML format into the document with HTML (Hypertext Markup Language) format, a second analyzing module for leading the document with HTML format to carry out DOM (Document Object Model) analysis, and a second converting module for converting the document with HTML format into the WAP (Wireless Application Protocol) webpage format of XHTML (Extensible HyperText Markup Language) or WML (Wireless Markup Language). The invention also relates to a method for supporting a structured document display with an own browser of a mobile phone. The method and the middleware for supporting a structured document display with an own browser of a mobile phone provided by the invention have the advantages that the doc, xls, ppt, AdobPDF, ZIP with compressed format and TXT text and other documents of office 2000-2007 edition can be directly looked up by opening the mobile phone, and the operation for installing other document software or downloading the document is not needed.

Description

Support mobile phone to use method and the middleware that carries the browser-presented structured document
Technical field
The present invention relates to a kind of mobile phone of supporting and use method and the middleware that carries the browser-presented structured document.
Background technology
Usually mobile phone is if desired to Microsoft office class document in the network system, Adobe PDF document, txt document (text document), and zip compressed format files etc. check that just must corresponding documents editing software to be installed just passable, and the form user of install software not only uses trouble, and the installation of software for the performance requirement of mobile phone terminal also than higher, open bigger slightly document and will cause mobile phone to crash the user experience extreme difference because of consumes resources is more.
XML(Extensible Markup Language) be extend markup language, it is the same with HTML, all is SGML (Standard Generalized Markup Language, standard generalized markup language).
HTML(Hyper Text Mark-up Language) being HTML (Hypertext Markup Language) or HTML, is the language that is most widely used on the present network, also is the main language that constitutes web document.
DOM=Document Object Model, DOM Document Object Model, DOM can visit and revise the content and structure of a document in a kind of mode that is independent of platform and language.In other words, this is expression and the common method of handling a HTML or XML document.
XHTML can expand hypertext markup language (eXtensible HyperText Markup Language), is a kind of markup language, and (HTML) is similar for manifestation mode and hypertext markup language, but strict more on the grammer.
The WML(WAP Markup Language, Wireless Markup Language) be a kind of script, the content that it is write than HTML is wanted consumption network browser internal memory and CPU time still less, makes WML friendly more concerning wide area network and mobile device.
WAP(Wireless Application Protocol) being WAP (wireless application protocol), is a global network communication protocol.
The Office(full name: Microsoft Office), be the office software of a cover by Microsoft exploitation, it is developed for Microsoft Windows and Apple Macintosh operating system.
PDF is the portable file layout of Portable Document Format() abbreviation, be a kind of electronic document format, irrelevant with operating system platform, form by the exploitation of Adobee company.
Summary of the invention
The invention provides a kind of method and middleware of supporting mobile phone to use to carry the browser-presented structured document for addressing the above problem.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of mobile phone of supporting uses the system that carries the browser-presented structured document, it comprises middleware, described middleware comprise the document flow of obtaining document files the reception information module, with the document flow of reading in resolve to the XML form first parsing module, the file conversion of this XML form is become first modular converter of html format file, html file is carried out second parsing module of DOM structure elucidation and html file is converted to second modular converter of the WAP page form of XHTML or WML.
A kind of mobile phone of supporting uses the method that carries the browser-presented structured document, and it may further comprise the steps:
Step 1: mobile message conversion middleware (middleware is a kind of independently system software or service routine, and Distributed Application software is by this software shared resource between different technology) obtains the document flow of document files;
Step 2: the document flow of reading in is resolved to the XML form;
Step 3: the file conversion of this XML form is become the html format file;
Step 4: html file is carried out the DOM structure elucidation;
Step 5: the WAP page form that html file is converted to XHTML or WML.
Further, the process of obtaining document flow in the described step 1 is:
Step 1.1: receive user's request, and obtain the parameter of the file that the user will open;
Step 1.2: judge whether the parameter in the typelib of setting is corresponding with the parameter in the step 1.1, judge then that as correspondence the type of file is also preserved, as the not corresponding next step that then continues;
Step 1.3: judge whether the file that the user will open is compressed file, if then obtain the tabulation of compressed file and return step 1.1, if not, then continue next step;
Step 1.4: whether the type of judging file is the file type that can resolve, if then judge its type and preservation, if not file type that then is set to give tacit consent to and preservation.
Further, described step 2 becomes document analysis the routine library of XML for by increasing income engineering POI(Point of Interest) document flow of reading in is resolved to the XML form.
Further, described step 3 concerns that with the File mapping of html format the file conversion with this XML form becomes the html format file for the file according to the XML form.
Further, described step 5 is according to HTML that sets and the mapping relations of XHTML or WML, html file is converted to WAP page formatted files such as XHTML or WML.
Further, described step 4 is: middleware carries out the DOM structure elucidation with html file, and nonstandard form in the file is proofreaied and correct.
The invention has the beneficial effects as follows: mobile phone can directly be opened and check doc in the office2000-2007 version, (XLS is exactly a Microsoft Excel worksheet to xls, be a kind of spreadsheet format very commonly used), ppt(PPT, a kind of PowerPoint graphic package is that Power Point is called for short), and Adobe PDF, the ZIP of compressed format, type files such as text TXT need not to install other document softwares or download document.
Description of drawings
Fig. 1 is the structural representation of middleware of the present invention;
Fig. 2 uses the process flow diagram of the method that carries the browser-presented structured document for the present invention supports mobile phone.
Embodiment
Below in conjunction with accompanying drawing principle of the present invention and feature are described, institute gives an actual example and only is used to explain the present invention, is not to be used to limit scope of the present invention.
As shown in Figure 1, a kind of mobile phone of supporting uses the system that carries the browser-presented structured document, it comprises the middleware that is used for mobile message conversion, described middleware comprise the document flow of obtaining document files the reception information module, with the document flow of reading in resolve to the XML form first parsing module, the file conversion of this XML form is become first modular converter of html format file, html file is carried out second parsing module of DOM structure elucidation and html file is converted to second modular converter of the WAP page form of XHTML or WML.
As shown in Figure 2, a kind of mobile phone of supporting uses the method that carries the browser-presented structured document, and it may further comprise the steps:
Step 1: middleware (middleware is a kind of independently system software or service routine, and Distributed Application software is by this software shared resource between different technology) obtains the document flow of document files;
Step 2: by the engineering POI that increases income (Point of Interest becomes document analysis the routine library of XML), middleware resolves to the XML form with the document flow of reading in earlier;
Step 3: middleware becomes the html format file with the file conversion of this XML form;
Step 4: middleware carries out the DOM structure elucidation with html file;
Step 5: middleware converts html file to the WAP page form of XHTML or WML.
The process of obtaining document flow in the described step 1 is:
Step 1.1: middleware receives user's request and obtains the parameter of the file that the user will open;
Step 1.2: judge whether the parameter in the typelib of middleware is corresponding with the parameter in the step 1.1, then judge the type of file and preserve as correspondence, as the not corresponding next step that then continues;
Step 1.3: judge whether the file that the user will open is compressed file, if then obtain the tabulation of compressed file and return step 1.1, if not, then continue next step;
Step 1.4: whether the type of judging file is the file type that can resolve, if then judge its type and preservation, if not file type that then is set to give tacit consent to and preservation.
Described step 3 concerns that for the file of middleware by the XML form and the File mapping of html format the file conversion with this XML form becomes the html format file.
Described step 5 is a middleware according to HTML that sets and the mapping relations of XHTML or WML, html file is converted to WAP page formatted files such as XHTML or WML.
Described step 4 is: middleware carries out the DOM structure elucidation with html file, and nonstandard form in the file is proofreaied and correct, and the format conversion that is about to picture is the size that mobile phone can be browsed, and form that mobile phone can browse etc. is changed in the composing of file.As the paired label<table of XHTML normalized definition〉do not write</table the time, can proofread and correct automatic interpolation</table.
By our mobile message conversion middleware platform (MITM), can be directly with the documents such as word, excle of Microsoft office, Adobe PDF document txt document, and structured document such as zip compressed format files is directly changed into the XHTML that the mobile phone terminal browser directly supports or the text form web page of WML form, format conversion is carried out at server end entirely, mobile phone terminal only need carry the document after browser gets final product the online reading conversion, and need not to install other any document software
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. support mobile phone to use the method that carries the browser-presented structured document for one kind, it is characterized in that it may further comprise the steps:
Step 1: the document flow of obtaining document files;
Step 2: the document flow of reading in is resolved to the XML form;
Step 3: the file conversion of this XML form is become the html format file;
Step 4: html file is carried out the DOM structure elucidation;
Step 5: the WAP page form that html file is converted to XHTML or WML.
2. support mobile phone according to claim 1 uses the method that carries the browser-presented structured document, it is characterized in that the process of obtaining document flow in the described step 1 is:
Step 1.1: receive user's request, and obtain the parameter of the file that the user will open;
Step 1.2: judge whether the parameter in the typelib of setting is corresponding with the parameter in the step 1.1,, then judge the type and the preservation of file, as the not corresponding next step that then continues as correspondence;
Step 1.3: judge whether the file that the user will open is compressed file, if then obtain the tabulation of compressed file and return step 1.1, if not, then continue next step;
Step 1.4: whether the type of judging file is the file type that can resolve, if then judge its type and preservation, if not file type that then is set to give tacit consent to and preservation.
3. support mobile phone according to claim 1 uses the method that carries the browser-presented structured document, it is characterized in that described step 2 resolves to XML form by the engineering POI that increases income with the document flow of reading in for middleware.
4. support mobile phone according to claim 1 uses the method that carries the browser-presented structured document, it is characterized in that described step 3 is for converting the file of this XML form to the html format file according to the mapping relations of the file of the file of XML form and html format.
5. support mobile phone according to claim 1 uses the method that carries the browser-presented structured document, it is characterized in that, described step 5 is a middleware according to HTML that sets and the mapping relations of XHTML or WML, html file is converted to WAP page formatted files such as XHTML or WML.
6. support mobile phone according to claim 1 uses the method that carries the browser-presented structured document, and it is characterized in that described step 4 is: middleware carries out the DOM structure elucidation with html file, and nonstandard form in the file is proofreaied and correct.
7. support mobile phone to use the middleware that carries the browser-presented structured document for one kind, it is characterized in that, it comprise the document flow of obtaining document files the reception information module, with the document flow of reading in resolve to the XML form first parsing module, the file conversion of this XML form is become first modular converter of html format file, html file is carried out second parsing module of DOM structure elucidation and html file is converted to second modular converter of the WAP page form of XHTML or WML.
CN 201110097346 2011-04-19 2011-04-19 Method and middleware for supporting structured document display with own browser of mobile phone Pending CN102156742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110097346 CN102156742A (en) 2011-04-19 2011-04-19 Method and middleware for supporting structured document display with own browser of mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110097346 CN102156742A (en) 2011-04-19 2011-04-19 Method and middleware for supporting structured document display with own browser of mobile phone

Publications (1)

Publication Number Publication Date
CN102156742A true CN102156742A (en) 2011-08-17

Family

ID=44438241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110097346 Pending CN102156742A (en) 2011-04-19 2011-04-19 Method and middleware for supporting structured document display with own browser of mobile phone

Country Status (1)

Country Link
CN (1) CN102156742A (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662984A (en) * 2012-03-14 2012-09-12 南京新与力文化传播有限公司 HTML(hypertext markup language)-based multi-platform message handling method
CN102662985A (en) * 2012-03-14 2012-09-12 南京新与力文化传播有限公司 A method for previewing OFFICE files on a remote server
CN102750372A (en) * 2012-06-15 2012-10-24 翁时锋 Analytical method for automatically acquiring webpage structured information
CN103166981A (en) * 2011-12-08 2013-06-19 腾讯科技(深圳)有限公司 Wireless webpage transcoding method and device
CN103389969A (en) * 2012-05-07 2013-11-13 腾讯科技(深圳)有限公司 Method, device and system for previewing PDF (portable document format) file on mobile terminal
CN103631935A (en) * 2013-12-05 2014-03-12 用友软件股份有限公司 Mobile end text and graphics mixed display device and mobile end text and graphics mixed display method
CN103729338A (en) * 2013-12-29 2014-04-16 国云科技股份有限公司 File on-line previewing method
CN103838797A (en) * 2012-11-27 2014-06-04 大连灵动科技发展有限公司 Method for optimizing mobile search engine
CN105630753A (en) * 2015-12-28 2016-06-01 中广核核电运营有限公司 Digitalized regulation upgrading and transformation method and system of nuclear power plant
CN106250358A (en) * 2016-08-25 2016-12-21 曾美枝 Electronic reading method and apparatus
CN106371844A (en) * 2016-08-31 2017-02-01 北京奇艺世纪科技有限公司 Method and system for presenting webpage by native user interface assembly
CN106909533A (en) * 2016-11-14 2017-06-30 上海仪电鑫森科技发展有限公司 Suitable for multi-platform examination editing system
CN106991083A (en) * 2017-03-20 2017-07-28 珠海格力电器股份有限公司 A kind of method and device of electronic document processing
CN107357769A (en) * 2016-05-10 2017-11-17 北京慧点科技有限公司 Electronic reading method and system based on mobile terminal
CN107943915A (en) * 2017-11-20 2018-04-20 福建亿榕信息技术有限公司 The method and device of OFD file Real time displayings based on HTML5
CN109002335A (en) * 2017-06-06 2018-12-14 北京京东尚科信息技术有限公司 Page file playing method and device
CN109801192A (en) * 2018-12-15 2019-05-24 深圳壹账通智能科技有限公司 Electron contract method, apparatus, computer equipment and storage medium
CN111324841A (en) * 2018-12-14 2020-06-23 英业达科技有限公司 Test question file format conversion system and method
CN112257387A (en) * 2020-10-27 2021-01-22 合肥青谷信息科技有限公司 Document conversion method
CN112632165A (en) * 2020-12-22 2021-04-09 平安普惠企业管理有限公司 Page form export EXCEL method and device, computer equipment and storage medium
CN112861482A (en) * 2021-02-07 2021-05-28 吉林省科学技术信息研究所 File online editing method
CN113011140A (en) * 2021-02-10 2021-06-22 北京字跳网络技术有限公司 View display method and device and electronic equipment
CN113569535A (en) * 2021-07-23 2021-10-29 上海微盟企业发展有限公司 NODEJS application based file conversion analysis method and system
CN113934955A (en) * 2021-10-25 2022-01-14 稿定(厦门)科技有限公司 Method for generating display PPT file by browser, browser and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150803A (en) * 2007-10-24 2008-03-26 优视动景(北京)技术服务有限公司 Method for micro-browser to process network data, micro-browser and its server

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150803A (en) * 2007-10-24 2008-03-26 优视动景(北京)技术服务有限公司 Method for micro-browser to process network data, micro-browser and its server

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166981A (en) * 2011-12-08 2013-06-19 腾讯科技(深圳)有限公司 Wireless webpage transcoding method and device
CN103166981B (en) * 2011-12-08 2017-12-12 腾讯科技(深圳)有限公司 A kind of radio web page code-transferring method and device
CN102662984A (en) * 2012-03-14 2012-09-12 南京新与力文化传播有限公司 HTML(hypertext markup language)-based multi-platform message handling method
CN102662985A (en) * 2012-03-14 2012-09-12 南京新与力文化传播有限公司 A method for previewing OFFICE files on a remote server
CN103389969A (en) * 2012-05-07 2013-11-13 腾讯科技(深圳)有限公司 Method, device and system for previewing PDF (portable document format) file on mobile terminal
CN103389969B (en) * 2012-05-07 2016-02-24 腾讯科技(深圳)有限公司 A kind of methods, devices and systems for mobile terminal preview pdf document
CN102750372A (en) * 2012-06-15 2012-10-24 翁时锋 Analytical method for automatically acquiring webpage structured information
CN103838797A (en) * 2012-11-27 2014-06-04 大连灵动科技发展有限公司 Method for optimizing mobile search engine
CN103631935A (en) * 2013-12-05 2014-03-12 用友软件股份有限公司 Mobile end text and graphics mixed display device and mobile end text and graphics mixed display method
CN103631935B (en) * 2013-12-05 2017-04-05 用友优普信息技术有限公司 Mobile terminal picture and text mixing exhibiting device and mobile terminal picture and text mixing methods of exhibiting
CN103729338A (en) * 2013-12-29 2014-04-16 国云科技股份有限公司 File on-line previewing method
CN105630753A (en) * 2015-12-28 2016-06-01 中广核核电运营有限公司 Digitalized regulation upgrading and transformation method and system of nuclear power plant
CN105630753B (en) * 2015-12-28 2018-09-25 中广核核电运营有限公司 A kind of upgrade conversion method and system of nuclear plant digital regulation
CN107357769A (en) * 2016-05-10 2017-11-17 北京慧点科技有限公司 Electronic reading method and system based on mobile terminal
CN106250358A (en) * 2016-08-25 2016-12-21 曾美枝 Electronic reading method and apparatus
CN106371844B (en) * 2016-08-31 2019-10-22 北京奇艺世纪科技有限公司 A kind of method and system with primary user interface components displayed web page
CN106371844A (en) * 2016-08-31 2017-02-01 北京奇艺世纪科技有限公司 Method and system for presenting webpage by native user interface assembly
CN106909533A (en) * 2016-11-14 2017-06-30 上海仪电鑫森科技发展有限公司 Suitable for multi-platform examination editing system
CN106991083A (en) * 2017-03-20 2017-07-28 珠海格力电器股份有限公司 A kind of method and device of electronic document processing
CN109002335A (en) * 2017-06-06 2018-12-14 北京京东尚科信息技术有限公司 Page file playing method and device
CN107943915B (en) * 2017-11-20 2020-05-08 福建亿榕信息技术有限公司 Method and device for OFD (office file) online display based on HTML5
CN107943915A (en) * 2017-11-20 2018-04-20 福建亿榕信息技术有限公司 The method and device of OFD file Real time displayings based on HTML5
CN111324841A (en) * 2018-12-14 2020-06-23 英业达科技有限公司 Test question file format conversion system and method
CN109801192A (en) * 2018-12-15 2019-05-24 深圳壹账通智能科技有限公司 Electron contract method, apparatus, computer equipment and storage medium
CN112257387A (en) * 2020-10-27 2021-01-22 合肥青谷信息科技有限公司 Document conversion method
CN112632165A (en) * 2020-12-22 2021-04-09 平安普惠企业管理有限公司 Page form export EXCEL method and device, computer equipment and storage medium
CN112861482A (en) * 2021-02-07 2021-05-28 吉林省科学技术信息研究所 File online editing method
CN113011140A (en) * 2021-02-10 2021-06-22 北京字跳网络技术有限公司 View display method and device and electronic equipment
CN113569535A (en) * 2021-07-23 2021-10-29 上海微盟企业发展有限公司 NODEJS application based file conversion analysis method and system
CN113934955A (en) * 2021-10-25 2022-01-14 稿定(厦门)科技有限公司 Method for generating display PPT file by browser, browser and storage medium

Similar Documents

Publication Publication Date Title
CN102156742A (en) Method and middleware for supporting structured document display with own browser of mobile phone
US9686378B2 (en) Content management and transformation system for digital content
US8151183B2 (en) System and method for facilitating content display on portable devices
CN101567065B (en) Cross-platform online file editing system and method thereof
US7895598B2 (en) Page and device-optimized cascading style sheets
CN109522018B (en) Page processing method and device and storage medium
US9053296B2 (en) Detecting plagiarism in computer markup language files
US20060107206A1 (en) Form related data reduction
US20020111972A1 (en) Virtual access
CN100550007C (en) Analytic system and method based on a plurality of files of key element
EP1676210B1 (en) Method and apparatus for handling text and binary mark up languages in a computing device
TW201007563A (en) Mobile device application framework
CN104182426A (en) Display method and display device of update website content
CN105528369A (en) Webpage transcoding method and device and server
KR20020031691A (en) Method and system for real-time transforming internet contents
US20090037807A1 (en) Coordinated xml data parsing and processing from within separate computing processes
US20070156839A1 (en) Web services for wireless pervasive devices
CN102497478A (en) Method for cellphone users to access internet quickly
CN101753537B (en) Server and web sending and displaying method
Niu et al. A design of cross-terminal web system based on JSON and REST
CN101933011B (en) System and method for profiling remote user interface
KR20060019709A (en) Method for transforming markup language based xml in mobile telephone and mobile telephone incorporating the same
EP1384165A2 (en) Customization of output content based on device type
CN102664959A (en) Mobile platform wireless middleware
KR20020069795A (en) The method for recognize markup language to utilize universal document type definition and its readable form

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Haidian District, Zhongguancun, South Street, No. 6,, building information, floor, No. 16

Applicant after: SI-TECH Information Technology Ltd.

Address before: 100085, Beijing, Haidian District on the nine Street 9 digital science and Technology Plaza, two floor

Applicant before: Beijing Digital China SI-TECH Information Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: BEIJING DIGITAL CHINA SI-TECH INFORMATION TECHNOLOGY LTD. TO: BEIJING SI-TECH INFORMATION TECHNOLOGY LTD.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110817