CN104932866A - System and method for generating customized xml file - Google Patents

System and method for generating customized xml file Download PDF

Info

Publication number
CN104932866A
CN104932866A CN201410097840.4A CN201410097840A CN104932866A CN 104932866 A CN104932866 A CN 104932866A CN 201410097840 A CN201410097840 A CN 201410097840A CN 104932866 A CN104932866 A CN 104932866A
Authority
CN
China
Prior art keywords
xml
original document
masterplate
receiving element
conversion
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
CN201410097840.4A
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.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media 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 Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201410097840.4A priority Critical patent/CN104932866A/en
Publication of CN104932866A publication Critical patent/CN104932866A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a system for generating a customized xml file. The system includes a configuration unit for configuring a plurality of different xml templates, a receiving unit for receiving and storing initial files needed to be converted to xml formats; and a generating unit for selecting one of the plurality of different xml templates as a conversion template to enable the conversion template to convert the initial files into xml files. The configuration unit can configure the plurality of different xml templates, the generating unit selects one of the plurality of different xml templates as a conversion template to enable the conversion template to convert the initial files into the xml files based on users' needs, so that the system can meet the needs of clients for the differentiation of customized xml files. The invention further provides a method for generating a customized xml file.

Description

A kind of system and method generating self-defined xml file
Technical field
The present invention relates to computer information processing field, particularly relate to a kind of system and method generating self-defined xml file.
Background technology
Xml file is simple readability not only, various word, image even scale-of-two original document can also be marked, use xml handling implement can read like a cork and utilize these data, thus make xml file become a kind of ideal internet language, be suitable for very much the transmission of information between different systems.At present, be generally the xml form that different users provides unified, the consolidation form of xml file seems dumb, lacks extendability, cannot meet the differentiation needs of user.
Summary of the invention
An object of the present invention is the technology that the self-defined xml file of a kind of energy will be provided, meet the needs of user to xml file difference.
Especially, the invention provides a kind of system generating self-defined xml file, comprising:
Dispensing unit, for preparing multiple different xml masterplate;
Receiving element, for receiving and storing the original document that need be converted to xml form;
Generation unit, chooses a conduct conversion masterplate in described multiple different xml masterplate, uses described conversion masterplate that described original document is converted to xml file.
Further, described multiple different xml masterplate has different preamble contents and document elements content.
Further, described multiple different xml masterplate has corresponding configuration attribute, and the conversion masterplate of corresponding configuration attribute is chosen in the configuration that described generation unit is corresponding according to current Processing tasks.
Further, described receiving element comprises:
Original document acquisition module, for obtaining the described original document in database;
Original document analysis module, for analyzing data type and the content of described original document.
Further, described generation unit comprises:
Matching module, mates an xml masterplate as conversion masterplate according to the data type of described original document and content.
Further, also comprise:
Task allocation unit, be mixed with the original document received by receiving element needs to distribute to one or more different described xml masterplate by user by user.
The present invention also provides a kind of method generating self-defined xml file, comprises the steps:
A, uses the multiple different xml masterplate of dispensing unit preparation;
B, uses receiving element receive and store the original document that need be converted to xml form;
C, masterplate is changed in the conduct using generation unit to choose in described multiple different xml masterplate, and uses described conversion masterplate that described original document is converted to xml file.
Further, in step,
Dispensing unit uses different preamble contents and document elements content to configure described multiple different xml masterplate.
Further, in stepb,
Original document acquisition module in receiving element obtains the described original document in database, and the original document analysis module in receiving element analyzes data type and the content of described original document.
Further, in step C,
The matching module of described generation unit mates an xml masterplate as conversion masterplate according to the data type of described original document and content.
It is further, further comprising the steps of,
The original document using task allocation unit to be received by receiving element needs to distribute to one or more different described xml masterplate by user.
Dispensing unit of the present invention can configure multiple different xml masterplate, a described xml masterplate is chosen as conversion masterplate according to the needs of user generation unit of the present invention, and use this conversion masterplate that original document is converted to xml file, thus the present invention can meet the needs that the self-defined xml file of client realizes differentiation.
Further, matching module of the present invention can mate an xml masterplate as conversion masterplate according to the data type of original document and content, thus the original document of a certain type can be converted to the xml file of specific format by the present invention.
Further, task allocation unit of the present invention is mixed with the original document received by receiving element to be needed to distribute to different described xml masterplates by user by user, the original document of a certain type can be converted to the xml file of one or more forms like this by user of the present invention.
According to hereafter by reference to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will understand above-mentioned and other objects, advantage and feature of the present invention more.
Accompanying drawing explanation
Hereinafter describe specific embodiments more of the present invention with reference to the accompanying drawings by way of example, and not by way of limitation in detail.Reference numeral identical in accompanying drawing denotes same or similar parts or part.It should be appreciated by those skilled in the art that these accompanying drawings may not be drawn in proportion.In accompanying drawing:
Fig. 1 is the system composition schematic diagram generating self-defined xml file system according to an embodiment of the invention;
Fig. 2 is the system composition schematic diagram generating self-defined xml file system in accordance with another embodiment of the present invention;
Fig. 3 is the system composition schematic diagram according to the self-defined xml file system of the generation of another embodiment of the present invention;
Fig. 4 is the system composition schematic diagram according to the self-defined xml file system of the generation of another embodiment of the present invention;
Fig. 5 is the process flow diagram generating self-defined xml document method according to an embodiment of the invention.
Embodiment
Fig. 1 is the system composition schematic diagram generating self-defined xml file system according to an embodiment of the invention.A kind of system generating self-defined xml file can comprise in general manner:
Dispensing unit 100, for preparing multiple different xml masterplate.
Receiving element 200, for receiving and storing the original document that need be converted to xml form.
Generation unit 300, chooses a conduct conversion masterplate in described multiple different xml masterplate, uses this conversion masterplate that described original document is converted to xml file.User can use generation unit 300 of the present invention to choose a described xml masterplate as conversion masterplate as required, and use this conversion masterplate that original document is converted to xml file, thus the present invention can meet the needs that the self-defined xml file of client realizes differentiation.Xml file mainly comprises preamble and document elements.Wherein preamble comprises xml statement, processing instruction and annotation, the main part of document elements expression data, thus can configure multiple different xml masterplate according to different preamble contents and document elements content.
Fig. 2 is the system composition schematic diagram generating self-defined xml file system in accordance with another embodiment of the present invention, described receiving element 200 comprises original document acquisition module 201 and original document analysis module 202 in fig. 2, original document acquisition module 201 is for obtaining the described original document in database, and original document analysis module 202 is for analyzing data type and the content of described original document.Described multiple different xml masterplate can also have the configuration attribute of following correspondence: the xml file a certain or polytype original document being converted to specific format, the conversion masterplate of corresponding configuration attribute is chosen in the configuration that such generation unit 300 is corresponding according to current Processing tasks, and now generation unit 300 should analyze the type of the original document of current Processing tasks.Only for example, the data type of described original document can be .bas original document or .cpp original document, wherein .bas original document VisualBasic writes, and .cpp original document C++ writes, thus the original document of a certain type can be converted to the xml file of specific format by the present invention.
In the embodiment shown in fig. 3, described generation unit 300 comprises matching module 301, and matching module 301 mates an xml masterplate as conversion masterplate according to the data type of original document and content.Such as .bas original document is changed by xml masterplate A, and .cpp original document is changed by xml masterplate B.Again such as, content is changed by xml masterplate C about the original document of product, and content is changed by xml masterplate D about the original document of method.
In the embodiment shown in fig. 4, the system generating self-defined xml file system also comprises task allocation unit 400, task allocation unit 400 is pre-configured by user, after receiving element 200 receives and stores the original document that need be converted to xml form, the original document that receiving element 200 receives by task allocation unit 400 needs to distribute to one or more different described xml masterplate by user, the original document of a certain type can be converted to the xml file of one or more forms like this by user of the present invention.
The present invention also provides a kind of method generating self-defined xml file, and the method for the self-defined xml file of usually this generation comprises the steps:
A, uses dispensing unit 100 to prepare multiple different xml masterplate.
B, uses receiving element 200 receive and store the original document that need be converted to xml form.
C, masterplate is changed in the conduct using generation unit 300 to choose in described multiple different xml masterplate, and uses described conversion masterplate that described original document is converted to xml file.
In other method embodiment, further comprising the steps of: the original document using task allocation unit 400 to be received by receiving element 200 needs to distribute to one or more different described xml masterplate by user.
In step, dispensing unit 100 uses different preamble contents and document elements content to configure described multiple different xml masterplate.In stepb, the original document acquisition module 201 in receiving element 200 obtains the described original document in database, and the original document analysis module 202 in receiving element 200 analyzes data type and the content of described original document.In step C, the matching module 301 of described generation unit 300 mates an xml masterplate as conversion masterplate according to the data type of described original document and content.
Fig. 5 is the process flow diagram generating self-defined xml document method according to an embodiment of the invention, and as shown in Figure 5, the self-defined xml document method of this generation mainly comprises three steps:
Step S100, this step carries out task matching.In this step, the original document that receiving element 200 receives is distributed to step S200 by task allocation unit 400, and needs to distribute to one or more different described xml masterplate by user in step S20.
Step S200, this step carries out task process.This step uses this conversion masterplate that described original document is converted to xml file.
Step S300, this step carries out subsequent treatment.The xml file generated through step S200 is stored or sends to user or stops original document being converted to the work of xml file by this step.
In step s 200, also comprise: S201, this step judges whether certain one or more xml masterplate has obtaining step S100 and distributing of task, if without, carry out the work that original document is converted to xml file by step S300 stopping.If have, carry out step S202 and start to carry out convert task to described original document.In step S203, from described original document, read the content generating xml and need, the preamble content that the correspondence that this content comprises needs generates and document elements content.In step S204, judge according to the configuration in current task, obtain the basic templates content generating xml needs, this step is mainly used in locating the conversion masterplate chosen, and reads the specific preamble content of this conversion masterplate and document elements content.In step S205, according to the content of the original document of xml template and reading, perform the operation generating xml file.
Generally, for the different requirements of different user for xml form, the demand that therefore the self-definedization hope of xml form is increasing, the present invention may carry out changing a kind of scheme of xml file for the original document of one or more Data Sources.The present invention, according to the different xml template of customization, obtains the xml file that user needs, achieve the customization of different user for xml form, facilitate user to carry out follow-up relevant process the content of original document after carrying out processing process.
So far, those skilled in the art will recognize that, although multiple exemplary embodiment of the present invention is illustrate and described herein detailed, but, without departing from the spirit and scope of the present invention, still can directly determine or derive other modification many or amendment of meeting the principle of the invention according to content disclosed by the invention.Therefore, scope of the present invention should be understood and regard as and cover all these other modification or amendments.

Claims (10)

1. generate a system for self-defined xml file, it is characterized in that, comprising:
Dispensing unit (100), for preparing multiple different xml masterplate;
Receiving element (200), for receiving and storing the original document that need be converted to xml form;
Generation unit (300), chooses a conduct conversion masterplate in described multiple different xml masterplate, uses described conversion masterplate that described original document is converted to xml file.
2. system according to claim 1, is characterized in that,
Described multiple different xml masterplate has corresponding configuration attribute, and the conversion masterplate of corresponding configuration attribute is chosen in the configuration that described generation unit (300) is corresponding according to current Processing tasks.
3. system according to claim 1, is characterized in that, described receiving element (200) comprising:
Original document acquisition module (201), for obtaining the described original document in database;
Original document analysis module (202), for analyzing data type and the content of described original document.
4. system according to claim 3, is characterized in that, described generation unit (300) comprising:
Matching module (301), mates an xml masterplate as conversion masterplate according to the data type of described original document and content.
5. system according to claim 1, is characterized in that, also comprises:
Task allocation unit (400), be mixed with the original document received by receiving element (200) needs to distribute to one or more different described xml masterplate by user by user.
6. generate a method for self-defined xml file, it is characterized in that, comprise the steps:
A, uses dispensing unit (100) to prepare multiple different xml masterplate;
B, uses receiving element (200) receive and store the original document that need be converted to xml form;
C, masterplate is changed in the conduct using generation unit (300) to choose in described multiple different xml masterplate, and uses described conversion masterplate that described original document is converted to xml file.
7. method according to claim 6, is characterized in that, in step,
Dispensing unit (100) uses different preamble contents and document elements content to configure described multiple different xml masterplate.
8. method according to claim 6, is characterized in that, in stepb,
Original document acquisition module (201) in receiving element (200) obtains the described original document in database, and the original document analysis module (202) in receiving element (200) analyzes data type and the content of described original document.
9. method according to claim 8, is characterized in that, in step C,
The matching module (301) of described generation unit (300) mates an xml masterplate as conversion masterplate according to the data type of described original document and content.
10. method according to claim 6, is characterized in that, further comprising the steps of,
The original document using task allocation unit (400) to be received by receiving element (200) needs to distribute to one or more different described xml masterplate by user.
CN201410097840.4A 2014-03-17 2014-03-17 System and method for generating customized xml file Pending CN104932866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410097840.4A CN104932866A (en) 2014-03-17 2014-03-17 System and method for generating customized xml file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410097840.4A CN104932866A (en) 2014-03-17 2014-03-17 System and method for generating customized xml file

Publications (1)

Publication Number Publication Date
CN104932866A true CN104932866A (en) 2015-09-23

Family

ID=54120044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410097840.4A Pending CN104932866A (en) 2014-03-17 2014-03-17 System and method for generating customized xml file

Country Status (1)

Country Link
CN (1) CN104932866A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468571A (en) * 2015-11-19 2016-04-06 中国地质大学(武汉) Method and device used for automatically generating report

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201816A (en) * 2007-12-20 2008-06-18 北大方正集团有限公司 Adapter and method for outputting data in data stream to XML document
CN101639836A (en) * 2008-07-29 2010-02-03 国际商业机器公司 Data processing device and data processing method
CN101727626A (en) * 2009-12-30 2010-06-09 北京神州泰岳软件股份有限公司 Method and system for customizing electronic operation flow
CN103559321A (en) * 2013-11-22 2014-02-05 方正国际软件有限公司 Document format conversion system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201816A (en) * 2007-12-20 2008-06-18 北大方正集团有限公司 Adapter and method for outputting data in data stream to XML document
CN101639836A (en) * 2008-07-29 2010-02-03 国际商业机器公司 Data processing device and data processing method
CN101727626A (en) * 2009-12-30 2010-06-09 北京神州泰岳软件股份有限公司 Method and system for customizing electronic operation flow
CN103559321A (en) * 2013-11-22 2014-02-05 方正国际软件有限公司 Document format conversion system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468571A (en) * 2015-11-19 2016-04-06 中国地质大学(武汉) Method and device used for automatically generating report
CN105468571B (en) * 2015-11-19 2019-04-23 中国地质大学(武汉) It is a kind of for automatically generating the method and device of report

Similar Documents

Publication Publication Date Title
Weigel et al. Making data and workflows findable for machines
CN109902114B (en) ES cluster data multiplexing method, system, computer device and storage medium
US20170293550A1 (en) Apparatus and method for testing interoperability of robot software
US20150317413A1 (en) Flexible cad format
CN102043624B (en) Method for automatically programming intermediate communication interface and device
CN109308172A (en) Cloud print system
CN109241095B (en) Rapid query method, terminal and storage medium
CN109062906B (en) Translation method and device for program language resources
CN103279862A (en) Method and device for automatically generating and sending contract first draft based on E-mail
CN110347984B (en) Policy page changing method and device, computer equipment and storage medium
US20200019601A1 (en) Method & system for labeling and organizing data for summarizing and referencing content via a communication network
US20180189039A1 (en) Automatic generation of manual coding suggestions for conversion of application programs to off-line environment
KR101647371B1 (en) STL file including text information and, STL file searching and management system therefor
CN104932866A (en) System and method for generating customized xml file
CN103631546A (en) Data output and electronic document storage device, data output and electronic document storage method, word generation device and word generating method
US9734266B2 (en) Computer-aided design multi-user design negotiation system and method thereof
US9258144B2 (en) Methods, systems and computer-readable media for integrating a composite MIME message
US20180189038A1 (en) Automatic conversion of application program code listing segments for off-line environment
Hoffmann-Walbeck Smart Factory: JDF and XJD
RU2014146752A (en) METHOD FOR SYNTACTIC SERVICE ANALYSIS, FLEXIBLE ADAPTED TO IMS SYSTEM TAG
CN111709218A (en) Intelligent reporting platform and intelligent reporting method based on dynamic multiple data sources
CN104571969A (en) Printing processing method, device and system
CN116009793A (en) Printing method
CN105335523A (en) Data interaction method and Web server
JP2016532190A (en) Document format conversion apparatus and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20150923