CN110263221A - A kind of method and system based on xml operation word document - Google Patents

A kind of method and system based on xml operation word document Download PDF

Info

Publication number
CN110263221A
CN110263221A CN201910543393.3A CN201910543393A CN110263221A CN 110263221 A CN110263221 A CN 110263221A CN 201910543393 A CN201910543393 A CN 201910543393A CN 110263221 A CN110263221 A CN 110263221A
Authority
CN
China
Prior art keywords
word document
assignment
bookmark
text
placeholder
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
CN201910543393.3A
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.)
Fujian Linewell Software Co Ltd
Linewell Software Co Ltd
Original Assignee
Fujian Linewell Software 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 Fujian Linewell Software Co Ltd filed Critical Fujian Linewell Software Co Ltd
Priority to CN201910543393.3A priority Critical patent/CN110263221A/en
Publication of CN110263221A publication Critical patent/CN110263221A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/81Indexing, e.g. XML tags; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion

Abstract

The present invention relates to a kind of method and system based on xml operation word document, server platform dispose JDK7.0, middleware, specified format to assignment word document and bookmark, word document is converted by IO stream, the text for finding out corresponding bookmark according to special format by dom4j, modifies to the corresponding text of bookmark or assignment.Word file IO stream operation with traditional mode be using spcial character as placeholder, value can only disposable assignment, second of placeholder will lose, and the present invention assignment can not influenced repeatedly by special placeholder, can provide more diversified customer demand.

Description

A kind of method and system based on xml operation word document
Technical field
The present invention relates to document processing technology field, especially a kind of method and system based on xml operation word document.
Background technique
The main way of processing word is that word is operated and modified with POI tool at present, then original The character for having added a pile occupy-place on word, the operation of assignment is realized eventually by the mode of replacement text, and this way can only expire Sufficient means suitable, disposable to fill, next time special placeholder will be covered by being worth, and developer can not be further according to special Placeholder go to modify corresponding value.
Summary of the invention
In view of this, the purpose of the present invention is to propose to a kind of method and system based on xml operation word document, Ke Yiduo Secondary assignment is not influenced by special placeholder.
The present invention is realized using following scheme: a method of word document is operated based on xml, is disposed in server platform JDK7.0, middleware, specified format to assignment word document and bookmark, word document is converted by IO stream, is led to The text that dom4j finds out corresponding bookmark according to special format is crossed, is modified to the corresponding text of bookmark or assignment.
Further, after the corresponding text of bookmark is by modification or assignment, generating includes modified file or generation Log information including failure.
The present invention also provides a kind of systems based on the method described above based on xml operation word document, including Memory, actuator, server platform, the method instruction being stored in the memory in claim 1, the actuator exist The method instruction in memory is executed when operation.
Word file IO stream operation with traditional mode be using spcial character as placeholder, value can only disposable assignment, second Secondary placeholder will be lost, and the present invention assignment can not influenced repeatedly by special placeholder, can provide more diversified client Demand.
Compared with prior art, the invention has the following beneficial effects: the present invention proposes a kind of based on xml operation word document Method, can modify repeatedly to document, when solving the business scenarios such as office system, do not need user open NTKO or The browsers text plug-in unit such as WPS is to achieve the purpose that modify document repeatedly.
Specific embodiment
Below with reference to embodiment, the present invention will be further described.
It is noted that described further below be all exemplary, it is intended to provide further instruction to the application.Unless another It indicates, all technical and scientific terms used herein has usual with the application person of an ordinary skill in the technical field The identical meanings of understanding.
It should be noted that term used herein above is merely to describe specific embodiment, and be not intended to restricted root According to the illustrative embodiments of the application.As used herein, unless the context clearly indicates otherwise, otherwise singular Also it is intended to include plural form, additionally, it should be understood that, when in the present specification using term "comprising" and/or " packet Include " when, indicate existing characteristics, step, operation, device, component and/or their combination.
Present embodiments provide it is a kind of based on xml operation word document method, server platform dispose JDK7.0, in Between part, specified format to assignment word document and bookmark, word document is converted by IO stream, is pressed by dom4j Finding out the text of corresponding bookmark according to special format, (such as xml document has a corresponding bookmark label, has bookmark name inside label Field judges that current bookmark name carries out the modification of textview field there are also textview field label), it modifies to the corresponding text of bookmark Or assignment.
In the present embodiment, after the corresponding text of bookmark is by modification or assignment, generate include modified file or Log information including failed regeneration.
The present embodiment additionally provides a kind of system based on the method described above based on xml operation word document, packet Memory, actuator, server platform are included, the method instruction being stored in the memory in claim 1, the actuator The method instruction in memory is executed at runtime.
Word file IO stream operation with traditional mode be using spcial character as placeholder, value can only disposable assignment, second Secondary placeholder will be lost, and the present invention assignment can not influenced repeatedly by special placeholder, can provide more diversified client Demand.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The above described is only a preferred embodiment of the present invention, being not that the invention has other forms of limitations, appoint What those skilled in the art changed or be modified as possibly also with the technology contents of the disclosure above equivalent variations etc. Imitate embodiment.But without departing from the technical solutions of the present invention, according to the technical essence of the invention to above embodiments institute Any simple modification, equivalent variations and the remodeling made, still fall within the protection scope of technical solution of the present invention.

Claims (3)

1. it is a kind of based on xml operation word document method, which is characterized in that server platform dispose JDK7.0, middleware, Specified format to assignment word document and bookmark, word document is converted by IO stream, by dom4j according to special Format finds out the text of corresponding bookmark, modifies to the corresponding text of bookmark or assignment.
2. a kind of method based on xml operation word document according to claim 1, which is characterized in that corresponding in bookmark Text by after modification or assignment, generate the log information including modified file or failed regeneration.
3. a kind of system based on the described in any item methods based on xml operation word document of claim 1 to 2, feature It is, including memory, actuator, server platform, the method instruction being stored in the memory in claim 1, institute The method that actuator is executed at runtime in memory is stated to instruct.
CN201910543393.3A 2019-06-21 2019-06-21 A kind of method and system based on xml operation word document Pending CN110263221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910543393.3A CN110263221A (en) 2019-06-21 2019-06-21 A kind of method and system based on xml operation word document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910543393.3A CN110263221A (en) 2019-06-21 2019-06-21 A kind of method and system based on xml operation word document

Publications (1)

Publication Number Publication Date
CN110263221A true CN110263221A (en) 2019-09-20

Family

ID=67920326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910543393.3A Pending CN110263221A (en) 2019-06-21 2019-06-21 A kind of method and system based on xml operation word document

Country Status (1)

Country Link
CN (1) CN110263221A (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060106822A1 (en) * 2004-11-17 2006-05-18 Chao-Chun Lee Web-based editing system of compound documents and method thereof
CN101055577A (en) * 2006-04-12 2007-10-17 龙搜(北京)科技有限公司 Collector capable of extending markup language
CN101196886A (en) * 2006-12-08 2008-06-11 鸿富锦精密工业(深圳)有限公司 System and method for converting word files into XML files
CN101201816A (en) * 2007-12-20 2008-06-18 北大方正集团有限公司 Adapter and method for outputting data in data stream to XML document
CN101504654A (en) * 2009-03-17 2009-08-12 东南大学 Method for implementing automatic database schema matching
CN102207975A (en) * 2011-06-24 2011-10-05 天津大学 Method for manufacturing and displaying extensive makeup language (xml) data module based on ietm standard
CN102355461A (en) * 2011-09-29 2012-02-15 广州中浩控制技术有限公司 XBRL (Extensible Business Reporting Language) credible data storage method and credible data storage system
CN103020027A (en) * 2012-11-16 2013-04-03 北京北森测评技术有限公司 Method, device and system for generating dynamic report
CN105786788A (en) * 2016-03-22 2016-07-20 江苏国泰新点软件有限公司 Method and device for generating forms by using WORD program
CN106844307A (en) * 2017-01-05 2017-06-13 上海核工程研究设计院 It is a kind of to realize that Excel turns the system and method for Word based on mark
CN108241605A (en) * 2017-12-13 2018-07-03 广西电网有限责任公司电力科学研究院 A kind of technical report standardization write method based on VC
CN108763171A (en) * 2018-04-20 2018-11-06 中国船舶重工集团公司第七〇九研究所 A kind of document automation generation method based on format module
CN108920437A (en) * 2018-07-12 2018-11-30 中国工程物理研究院计算机应用研究所 The method that XML document is converted into html format document based on XSL
US20180373507A1 (en) * 2016-02-03 2018-12-27 Cocycles System for generating functionality representation, indexing, searching, componentizing, and analyzing of source code in codebases and method thereof
CN109388612A (en) * 2018-09-14 2019-02-26 中国科学院光电研究院 A kind of method, equipment, system and the medium of data summarization document structure tree

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060106822A1 (en) * 2004-11-17 2006-05-18 Chao-Chun Lee Web-based editing system of compound documents and method thereof
CN101055577A (en) * 2006-04-12 2007-10-17 龙搜(北京)科技有限公司 Collector capable of extending markup language
CN101196886A (en) * 2006-12-08 2008-06-11 鸿富锦精密工业(深圳)有限公司 System and method for converting word files into XML files
CN101201816A (en) * 2007-12-20 2008-06-18 北大方正集团有限公司 Adapter and method for outputting data in data stream to XML document
CN101504654A (en) * 2009-03-17 2009-08-12 东南大学 Method for implementing automatic database schema matching
CN102207975A (en) * 2011-06-24 2011-10-05 天津大学 Method for manufacturing and displaying extensive makeup language (xml) data module based on ietm standard
CN102355461A (en) * 2011-09-29 2012-02-15 广州中浩控制技术有限公司 XBRL (Extensible Business Reporting Language) credible data storage method and credible data storage system
CN103020027A (en) * 2012-11-16 2013-04-03 北京北森测评技术有限公司 Method, device and system for generating dynamic report
US20180373507A1 (en) * 2016-02-03 2018-12-27 Cocycles System for generating functionality representation, indexing, searching, componentizing, and analyzing of source code in codebases and method thereof
CN105786788A (en) * 2016-03-22 2016-07-20 江苏国泰新点软件有限公司 Method and device for generating forms by using WORD program
CN106844307A (en) * 2017-01-05 2017-06-13 上海核工程研究设计院 It is a kind of to realize that Excel turns the system and method for Word based on mark
CN108241605A (en) * 2017-12-13 2018-07-03 广西电网有限责任公司电力科学研究院 A kind of technical report standardization write method based on VC
CN108763171A (en) * 2018-04-20 2018-11-06 中国船舶重工集团公司第七〇九研究所 A kind of document automation generation method based on format module
CN108920437A (en) * 2018-07-12 2018-11-30 中国工程物理研究院计算机应用研究所 The method that XML document is converted into html format document based on XSL
CN109388612A (en) * 2018-09-14 2019-02-26 中国科学院光电研究院 A kind of method, equipment, system and the medium of data summarization document structure tree

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TIWSON: "利用dom4j读取并修改word模板内容,并生成word文档", 《HTTPS://WWW.ITEYE.COM/BLOG/ITSPACE-673709》 *

Similar Documents

Publication Publication Date Title
US9760415B2 (en) Code service for language-independent dispatch
TWI687867B (en) Method for generating and installing trusted application for trusted execution environment
CN106970820A (en) Code storage method and code storage
CN110012096B (en) Mobile client service update management method, device and system
CN107168749A (en) A kind of Compilation Method, device, equipment and computer-readable recording medium
CN105930138B (en) A kind of message treatment method and device
CN109800005B (en) Client hot update method and device
US20180025162A1 (en) Application program analysis apparatus and method
CN109743346A (en) Session process configuration method, device and computer readable storage medium
CN109445827A (en) A kind of method and device of game renewal, electronic equipment, storage medium
CN110348225A (en) Method and apparatus are determined for the security breaches of application programming interfaces
CN109828823A (en) A kind of unmanned plane algorithm simulating system extended method based on container virtualization technology
CN104778252B (en) The storage method and device of index
CN105224541B (en) Uniqueness control method, information storage means and the device of data
CN110019444A (en) A kind of operation requests processing method, device, equipment and system
CN107133160B (en) Server and client
US20230040564A1 (en) Learning Causal Relationships
CN110263221A (en) A kind of method and system based on xml operation word document
CN109933325A (en) A kind of dex file construction method, apparatus and system
US20160070564A1 (en) Dynamically schematized log messages for software applications
CN103294874B (en) For Web service method for packing and the system of Electromagnetic Simulation computing system FEKO
CN114282210A (en) Sandbox automatic construction method and system, computer equipment and readable storage medium
CN115315733A (en) Structural information preservation for graphics-to-text generation
CN105956205B (en) It is a kind of to generate the strong method and device of HBASE row
Yesudas et al. High-volume performance test framework using big data

Legal Events

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

Application publication date: 20190920