CN106227712A - Method for realizing rapid data conversion document based on extensible markup language - Google Patents

Method for realizing rapid data conversion document based on extensible markup language Download PDF

Info

Publication number
CN106227712A
CN106227712A CN201610603378.XA CN201610603378A CN106227712A CN 106227712 A CN106227712 A CN 106227712A CN 201610603378 A CN201610603378 A CN 201610603378A CN 106227712 A CN106227712 A CN 106227712A
Authority
CN
China
Prior art keywords
template
data
markup language
document
extensible markup
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
CN201610603378.XA
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.)
Inspur General Software Co Ltd
Original Assignee
Inspur General 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 Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201610603378.XA priority Critical patent/CN106227712A/en
Publication of CN106227712A publication Critical patent/CN106227712A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/149Adaptation of the text data for streaming purposes, e.g. Efficient XML Interchange [EXI] format

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a method for realizing rapid data conversion to documents based on extensible markup language, which comprises the following concrete steps: firstly, a template for exporting a document is configured; acquiring a data source, and quickly generating a data stream in a document format according to a template; and generating the data stream into a document file. Compared with the prior art, the method for realizing the rapid data conversion document based on the extensible markup language has the characteristics of separating the presentation layer from the service layer, constructing a reusable template, simplifying software development, improving software performance and maintainability and the like, and has good popularization and use values, strong practicability and wide application range.

Description

A kind of realize the fast quick change of data based on extensible markup language and lard speech with literary allusions the method for shelves
Technical field
The present invention relates to microcomputer data processing field, specifically a kind of based on the realization of extensible markup language The fast quick change of data is larded speech with literary allusions the method for shelves.
Background technology
Traditional data is converted into document, mostly there is dependence system component, generates document volume speed relatively slow, if assembly Change it is necessary to deficiencies such as amendment programs.The operating capability of extensible markup Speech enhancement file and data, data are recovered Ability, and with the interoperability of line-of-business system.It is the extension of the binary file to earlier version.Based on this, existing There is provided a kind of to realize the fast quick change of data based on extensible markup language and lard speech with literary allusions the method for shelves, use the method effectively to solve Many critical problems such as system component, speed is slow, reusability is low need to be relied on during document conversion.
Summary of the invention
The technical assignment of the present invention is for above weak point, it is provided that one realizes data based on extensible markup language Fast quick change is larded speech with literary allusions the method for shelves.
A kind of realizing the fast quick change of data based on extensible markup language and lard speech with literary allusions the method for shelves, it implements process and is:
One, first the template of document is derived in configuration;
Two, obtain data source, quickly generate the data stream of document format according to template;
Three, data stream is generated document files.
By visualization interface configuration documentation template and generate application markup language;Obtain data, according to template handle Data genaration meets the data stream of document format;Data conductance is generated document files.
In step one, configuration template is realized by visualization interface and generates application markup language, i.e. by visualization The template of interface definition document to be generated, after having configured and is automatically generated by system and uses programming indicia language, and by generation Content is stored in system database.
The detailed process of described step 2 is: read template file, obtains data source, and calling processing method is raw by data source Become to meet the data stream of template configuration form, finally preserve data stream.
Calling processing method preservation refer to first data be transferred to entity class, then template transfers to configuration class, by processing Data genaration is met the data stream of template configuration form by class, and data stream is stored in system database.
The detailed process of described step 3 is: read the data stream of system database, generates document files, then online pre- Look at or download the document of generation.
The present invention a kind of realizes the fast quick change of data based on extensible markup language and lards speech with literary allusions the method for shelves and prior art phase Ratio, has the advantages that
The present invention a kind of realizes the fast quick change of data based on extensible markup language and lards speech with literary allusions the method for shelves, by presentation layer and operation layer Separate, build reusable template, simplify software development, improve the feature such as software performance and maintainability, have and well push away Wide use value, practical, applied widely.
Accompanying drawing explanation
What accompanying drawing 1 was the present invention realizes schematic diagram.
Detailed description of the invention
Below in conjunction with the accompanying drawings and specific embodiment the invention will be further described.
As shown in Figure 1, the present invention provides a kind of and realizes the fast quick change of data based on extensible markup language and lard speech with literary allusions the side of shelves Method, need to rely on many critical problems such as system component, speed is slow, reusability is low when solving document conversion.
The process that implements of the method is:
One, first the template of document is derived in configuration;
Two, obtain data source, quickly generate the data stream of document format according to template;
Three, data stream is generated document files.
So, just according to template generation document.
By visualization interface configuration documentation template and generate application markup language;Obtain data, according to template handle Data genaration meets the data stream of document format;Data conductance is generated document files.
In step one, configuration template is realized by visualization interface and generates application markup language, i.e. by visualization The template of interface definition document to be generated, after having configured and is automatically generated by system and uses programming indicia language, and by generation Content is stored in system database.
The markup language code used during this step one is as follows:
<w:p wsp:rsidR="ID" wsp:rsidRPr="ID" wsp:rsidRDefault="ID" wsp:rsidP="ID" >
<w:pPr>
<w:widowControl/>
<w:jc w:val="left"/>
<w:rPr>
<w:rFonts w:ascii=" font " w:h-ansi=" font " w:cs=" font "/>
<wx:font wx:val=" font "/>
<w:color w:val="000000"/>
<w:kern w:val="0"/>
<w:sz w:val=" font size "/>
<w:sz-cs w:val=" font size "/>
</w:rPr>
</w:pPr>
<aml:annotation aml:id=" 22 " w:type=" starts " w:name=" JMPGSQ_TBR "/>
<aml:annotation aml:id=" 22 " w:type=" terminate "/>
</w:p>
The detailed process of described step 2 is: read template file, obtains data source, and data source is generated symbol by calling processing method The data stream of shuttering configuration format, finally preserves data stream.
Calling processing method preservation refer to first data be transferred to entity class, then template transfers to configuration class, by processing Data genaration is met the data stream of template configuration form by class, and data stream is stored in system database.
This step 2 to implement code as follows:
public string GenerateDocument()
{
var service = new GenerateService();
var docModel service.GetModel();
var DataSource= service.GetData();
service. SetNode(DataSource, docModel);
XmlDocument xml= service.GetDoc();
service.Save(xml);
}
The detailed process of described step 3 is: read the data stream of system database, generates document files, then online preview or Download the document generated.
This step 3 to implement code as follows.
public void PreviewDocument (bool preview)
{
var service = new GenerateService();
var docContent= service.GetDoc();
if(preview)
service. Preview (docContent);
Else
service.Download(docContent);
}
For making advantages of the present invention, purpose be easier to understand, understandable, below an explanation is done with regard to specific embodiment.
By visualization interface configuration template file, and generate configuration information.
Call the method reading configuration informations such as GenerateDocument and generate the data stream meeting document format.
Call PreviewDocument method the online preview of file or locally downloading generated.
Just can effectively be solved by above-mentioned steps data be converted in document process need to rely on system component, speed slow, Many critical problems such as reusability is low, simplify software development, improve the feature such as software performance and maintainability, have well Popularizing value.
By detailed description of the invention above, described those skilled in the art can readily realize the present invention.But should Working as understanding, the present invention is not limited to above-mentioned detailed description of the invention.On the basis of disclosed embodiment, described technical field Technical staff can the different technical characteristic of combination in any, thus realize different technical schemes.
In addition to the technical characteristic described in description, it is the known technology of those skilled in the art.

Claims (6)

1. one kind realizes the fast quick change of data based on extensible markup language and lards speech with literary allusions the method for shelves, it is characterised in that it implements Process is:
One, first the template of document is derived in configuration;
Two, obtain data source, quickly generate the data stream of document format according to template;
Three, data stream is generated document files.
The most according to claim 1 a kind of realize the fast quick change of data based on extensible markup language and lard speech with literary allusions the method for shelves, its It is characterised by, by visualization interface configuration documentation template and generate application markup language;Obtain data, according to template handle Data genaration meets the data stream of document format;Data conductance is generated document files.
The most according to claim 2 a kind of realize the fast quick change of data based on extensible markup language and lard speech with literary allusions the method for shelves, its Being characterised by, in step one, configuration template is realized by visualization interface and generates application markup language, i.e. by visual Change the template of interface definition document to be generated, after having configured and automatically generated by system and use programming indicia language, and will generate Content be stored in system database.
The most according to claim 1 a kind of realize the fast quick change of data based on extensible markup language and lard speech with literary allusions the method for shelves, its Being characterised by, the detailed process of described step 2 is: read template file, obtains data source, and calling processing method is by data source Generate the data stream meeting template configuration form, finally preserve data stream.
The most according to claim 4 a kind of realize the fast quick change of data based on extensible markup language and lard speech with literary allusions the method for shelves, its Being characterised by, calling processing method preservation refer to first data be transferred to entity class, then template transfers to configuration class, by processing Data genaration is met the data stream of template configuration form by class, and data stream is stored in system database.
The most according to claim 1 a kind of realize the fast quick change of data based on extensible markup language and lard speech with literary allusions the method for shelves, its Being characterised by, the detailed process of described step 3 is: read the data stream of system database, generates document files, the most online The document that preview or download generate.
CN201610603378.XA 2016-07-28 2016-07-28 Method for realizing rapid data conversion document based on extensible markup language Pending CN106227712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610603378.XA CN106227712A (en) 2016-07-28 2016-07-28 Method for realizing rapid data conversion document based on extensible markup language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610603378.XA CN106227712A (en) 2016-07-28 2016-07-28 Method for realizing rapid data conversion document based on extensible markup language

Publications (1)

Publication Number Publication Date
CN106227712A true CN106227712A (en) 2016-12-14

Family

ID=57533680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610603378.XA Pending CN106227712A (en) 2016-07-28 2016-07-28 Method for realizing rapid data conversion document based on extensible markup language

Country Status (1)

Country Link
CN (1) CN106227712A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040039807A1 (en) * 2002-04-25 2004-02-26 Angel Boveda De Miguel Methods and arrangements in a telecommunication network
CN101944087A (en) * 2009-07-08 2011-01-12 方正国际软件(北京)有限公司 Device and method for generating compound document
CN102103573A (en) * 2009-12-17 2011-06-22 北大方正集团有限公司 Method and system for quickly generating files in open formats
CN102708336A (en) * 2012-05-02 2012-10-03 四川建设网有限责任公司 Method and system for electronic document processing based on separation of key data from customized template
CN103838596A (en) * 2012-11-26 2014-06-04 中国银联股份有限公司 Formatted file generation system, device and method for data processing
CN105279228A (en) * 2015-09-14 2016-01-27 深圳市永兴元科技有限公司 Report processing method and device based on extensible markup language
CN105320739A (en) * 2015-09-22 2016-02-10 深圳市永兴元科技有限公司 Information extraction method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040039807A1 (en) * 2002-04-25 2004-02-26 Angel Boveda De Miguel Methods and arrangements in a telecommunication network
CN101944087A (en) * 2009-07-08 2011-01-12 方正国际软件(北京)有限公司 Device and method for generating compound document
CN102103573A (en) * 2009-12-17 2011-06-22 北大方正集团有限公司 Method and system for quickly generating files in open formats
CN102708336A (en) * 2012-05-02 2012-10-03 四川建设网有限责任公司 Method and system for electronic document processing based on separation of key data from customized template
CN103838596A (en) * 2012-11-26 2014-06-04 中国银联股份有限公司 Formatted file generation system, device and method for data processing
CN105279228A (en) * 2015-09-14 2016-01-27 深圳市永兴元科技有限公司 Report processing method and device based on extensible markup language
CN105320739A (en) * 2015-09-22 2016-02-10 深圳市永兴元科技有限公司 Information extraction method and apparatus

Similar Documents

Publication Publication Date Title
CN102819426B (en) Method for synchronizing AUTOSAR (automotive open system architecture) model to Simulink model
US8086618B2 (en) Configuration rule translation mapper
CN101430684A (en) Method and apparatus for mutual conversion between Chinese work office software document and documents with other format
KR101379855B1 (en) Method and apparatus for data migration from hierarchical database of mainframe system to rehosting solution database of open system
WO2018233673A1 (en) Method and apparatus for configuring model code in controller, and storage medium
US20030159105A1 (en) Interpretive transformation system and method
CN110716913B (en) Mutual migration method of Kafka and Elasticissearch database data
CN106227712A (en) Method for realizing rapid data conversion document based on extensible markup language
CN109325217A (en) A kind of document conversion method, system, device and computer readable storage medium
CN109062875A (en) A kind of end C/S three-dimensional modeling data conversion method, device and storage medium
CN103226628B (en) Automobile fore suspension and rear suspension tire enveloping surface rapid generation and device
US9052906B2 (en) Modularized customization of a model in a model driven development environment
CN111177234A (en) Device and method for rapidly processing document type data file
CN115841095A (en) Document establishing method, system, medium and equipment
CN104123166A (en) Generation method for ipa installation package in non-Xcode environment
CN104484177B (en) A kind of method of mybatis NameSpaces mapping
CN103902684B (en) A kind of method of reptile collection content structure
Kraas Realizing Model Simplifications with QVT Operational Mappings.
CN113377453A (en) Picture processing method and device and electronic equipment
CN103186513A (en) Method and device for converting file formats
US8959246B2 (en) Method and computer program for a mediation processing node to update a message
CN106293776B (en) A kind of electric system EMTPE auxiliary compiling system
CN108874404A (en) A kind of method and apparatus that springMVC integrates redis
CN105354175B (en) A kind of data transfer device and system
CN110825331A (en) Tool capable of dynamically modifying WusaXFS Form

Legal Events

Date Code Title Description
C06 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

Application publication date: 20161214

RJ01 Rejection of invention patent application after publication