CN101751251A - Structured extensible markup language editing device and processing method - Google Patents

Structured extensible markup language editing device and processing method Download PDF

Info

Publication number
CN101751251A
CN101751251A CN200810218198A CN200810218198A CN101751251A CN 101751251 A CN101751251 A CN 101751251A CN 200810218198 A CN200810218198 A CN 200810218198A CN 200810218198 A CN200810218198 A CN 200810218198A CN 101751251 A CN101751251 A CN 101751251A
Authority
CN
China
Prior art keywords
xml
interface
xml interface
script
graphical interfaces
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
CN200810218198A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200810218198A priority Critical patent/CN101751251A/en
Publication of CN101751251A publication Critical patent/CN101751251A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a structured extensible markup language editing device and a processing method. The method comprises the following steps: explaining a received xml script engine, invoking a corresponding xml interface function in an xml interface database and packaging a corresponding xml interface structure returned by the function; analyzing the packaged xml interface structure, constructing a graphic interface and displaying the graphic interface to a user for editing; and collecting the edited graphic interface information and describing as a structured xml script file according to the interface tissue. By adopting the mode that the graphic interface is constructed for the user to edit the xml script and to package abstract information, the workload of processing the xml script is reduced, the editing error rate is reduced, and the humanistic operating interface is more friendly, thus enabling the edit to be easier and more convenient and increasing the reliability, flexibility and convenience of the edit; and the period of program development and the debugging workload are reduced at the same time of increasing the work efficiency.

Description

A kind of structurized extensible markup language editing device and disposal route
Technical field
The present invention relates to the treating apparatus and the technical field of extend markup language xml script, in particular, what relate to is the improvement of a kind of structurized extensible markup language editing device and disposal route.
Background technology
XML (eXtensible Markup Language is hereinafter to be referred as xml) is an extend markup language, is a kind of meta-tag language, description be the structure and the meaning of document, the user can freely define own needed mark, has very strong dirigibility; Simultaneously, xml also is a kind of data of self-described, has non-proprietaryly and be easy to the characteristics of reading and understanding, and concerning user and computer program, all is to be easy to read and write, and is the first-selection of exchanges data common language; In addition, xml still is that the ideal of large-scale document or complicated document is selected, because its data are structurized, this not only makes the user can specify one to define the vocabulary of element in the document, but but also the relation between the designed element, so function is very powerful.
Continuous maturation along with the xml technology, use also more and more widely, a large amount of software uses xml information warehouse, xml interface and xml communication, how effectively to edit xml, and then come the organization and administration application software by xml, become the problem that the software application field is paid special attention to.
But the xml document is in most cases all created with editing machine, and its editing machine is basic text editor, and as notepad notepad or vi, and these editing machines can not get a real idea of xml.The shortcoming of this edit mode be workload big, be difficult for understanding and makeing mistakes easily, thereby cause the raising of the numerous and diverse and maintenance cost of xml document process.Obviously, be that this xml mark structure is normalized for some structurized xml, predefined is good, and above-mentioned edit mode lacks efficient and reliability, and dirigibility is lower, and is also not convenient, also increased the cycle of program development and the workload of debugging simultaneously.
Therefore, prior art still awaits improving and development.
Summary of the invention
The objective of the invention is to, a kind of structurized extensible markup language editing device and disposal route are provided, can alleviate workload and minimizing editor error rate that the xml script is handled, and increase reliability, dirigibility and the convenience of editing, when increasing work efficiency, also can reduce the cycle of program development and the workload of debugging.
Technical scheme of the present invention is as follows:
A kind of structurized extensible markup language editing device, wherein, described editing device comprises xml script interface engine, xml interface encapsulation unit and the xml interface library that links to each other successively, wherein:
Described xml script interface engine is used for the xml script of receiving is made an explanation, and will explain that gained information is sent to described xml interface encapsulation unit;
Described xml interface encapsulation unit is used for calling the corresponding xml interface function of described xml interface library according to the information that described xml script interface engine is explained, and return respective x ml interface flag structure, and then carry out abstract package and graphical interfaces shows required internal description by xml interface encapsulation unit by this xml interface function;
Described xml interface library is the set of xml interface function, is used to offer the structural information that described xml interface encapsulation unit calls each xml interface.
Described editing device, wherein, described editing device comprises that also the xml script that links to each other with described xml interface encapsulation unit generates and output unit, is used to collect graphical interfaces information, and is expressed as structurized xml script file according to Interface Microstructure.
Described editing device, wherein, described xml script generates and output unit is expressed as structurized xml script file according to Interface Microstructure, be specially that described xml script generates and output unit uses the parameter at interface to carry out the variable replacement, and with the xml script file of the form generating structureization of byte stream.
Described editing device, wherein, described xml interface encapsulation unit comprises that also figure organizes subelement, is used to resolve the information of the xml interface structure that all xml interface functions is returned by described xml interface encapsulation unit after encapsulating, and is shown to the user with graphical interfaces.
Described editing device, wherein, described figure organizes subelement also to comprise the sub-device of identification parsing, is used for discerning the xml interface structure packaging body after described xml interface encapsulation unit encapsulates, and is used for graphical interfaces is resolved and be configured to the xml interface structure after the encapsulation.
Described editing device, wherein, described figure organizes subelement also to comprise response input submodule, is used to respond users' interfaces operation and parameter input, and on the graphical interfaces that makes up the dynamically action of display operation and the result of input.
A kind of structurized extend markup language disposal route may further comprise the steps:
The xml script engine that A, explanation are received calls xml interface function corresponding in the xml interface library, and encapsulates returned respective x ml interface structure by this function;
Xml interface structure after B, the parsing encapsulation makes up graphical interfaces and is shown to the user and edits;
C, the graphical interfaces information after will editing are collected, and are expressed as structurized xml script file according to Interface Microstructure.
Described method, wherein, described steps A specifically comprises:
A1, triggering xml interface engine make an explanation to the xml interface;
A2, return respective x ml interface flag structure according to the information of explaining;
A3, the xml interface structure that all xml interface functions are returned carry out abstract package.
Described method, wherein, described step B specifically comprises:
Xml interface structure after B1, identification, the parsing encapsulation, and make up graphical interfaces;
B2, response are also preserved the users' interfaces operation and the parameter input;
B3, on the graphical interfaces that makes up the dynamically action of display operation and the result of input.
Described method, wherein, described step C specifically comprises:
C1, collection graphical interfaces information;
The parameter at C2, use interface is carried out variable and is replaced;
C3, with the xml script file of the form generating structureization of byte stream.
A kind of structurized extensible markup language editing device provided by the present invention and disposal route, owing to adopted the mode that makes up figure interface for users editor's xml script and encapsulation abstracted information, workload and minimizing editor error rate that the xml script is handled have been alleviated, the operation interface of hommization is friendly more, make editor simple and convenient more, increase editor's reliability, dirigibility and convenience, when increasing work efficiency, also can reduce the cycle of program development and the workload of debugging.
Description of drawings
Fig. 1 is an editing device structural representation of the present invention;
Fig. 2 is an Interface Microstructure synoptic diagram of the present invention;
Fig. 3 is an editing and processing schematic flow sheet of the present invention.
Embodiment
Below with reference to shown in accompanying drawing, the embodiment and the preferred embodiment of structurized extensible markup language editing device of the present invention and disposal route described in detail.
A kind of structurized extensible markup language editing device of the present invention and disposal route, main core point is, has adopted the mode that makes up figure interface for users editor's xml script and encapsulation abstracted information to increase editor's reliability, dirigibility and convenience; Be well known to those skilled in the art as for technology such as engine, encapsulation, xml script and interface functions, do not repeat them here.
A kind of structurized extensible markup language editing device of the present invention as shown in Figure 1, comprises the xml script interface engine 110, xml interface encapsulation unit 120 and the xml interface library 130 that link to each other successively, wherein:
Described xml script interface engine 110 is used for the xml script of receiving is made an explanation, and will explain that gained information is sent to described xml interface encapsulation unit 120, wherein comprise the engine that can resolve the xml script in the xml script interface engine 110, this engine can carry out correct explanation to the xml script by the information of xml interface library 130; Described xml interface encapsulation unit 120 be used for finishing and the interface function of xml interface library 130 between translation, encapsulation, and the xml interface function that calls correspondence in the described xml interface library 130 according to the information that described xml script interface engine is explained, and return respective x ml interface flag structure according to the information that described xml script interface engine 110 is explained by this xml interface function, and and then carry out abstract package and graphical interfaces shows required internal description by xml interface encapsulation unit; Described xml interface library 130 is the set of xml interface function, is used to offer the structural information that described xml interface encapsulation unit 120 calls each xml interface.
Further, described editing device also comprises, the figure that is arranged in described xml interface encapsulation unit 120 is organized subelement 131, be used to resolve the xml interface structure that returns by 120 pairs of all xml interface functions of described xml interface encapsulation unit and encapsulate information afterwards, and be shown to the user with graphical interfaces; That is to say, encapsulate that the interface structure of being convenient to after figure organizes subelement to encapsulation is resolved, and is shown to the user with graphical interfaces by automated procedures docking port structure; Parsing wherein also can be described as further encapsulation, and internal procedure is exactly once to explain conversion.
Further, described figure organizes subelement 131 also to comprise the identification analyzing sub-module, the xml interface structure processing entities that is used for discerning after described xml interface encapsulation unit 120 encapsulates is the xml packaging body, and is used for graphical interfaces is resolved and be configured to the xml interface structure after the encapsulation; Described figure organizes subelement 131 also to comprise response input submodule, is used to respond users' interfaces operation and parameter input, and on the graphical interfaces that makes up the dynamically action of display operation and the result of input.
Be preferably, described editing device comprises that also the xml script that links to each other with described xml interface encapsulation unit 120 generates and output unit 140, be used for being expressed as structurized xml script file with graphical interfaces information gathering and according to Interface Microstructure, be specially: collect the graphical interfaces information after editing, use the parameter at interface to carry out variable and replace, and with the xml script file of the form generating structureization of byte stream.
Obviously, this mode that realizes with graphical interfaces Processing Structure xml having great advantage aspect making xml and the adjustment xml content, has been saved tediously long editing process, and can have been forced the developer to handle the xml file from modular angle by this mode.
In concrete the application, as shown in Figure 2, on the initial interface of components pattern as the xml interface list in, select the xml interface structure of the promptly corresponding standard of interface name element of standard, this element is dragged in the xml document structure tree among Fig. 2, processing such as the internal interface encapsulation unit can be analyzed the file that obtains, encapsulation, and then obtain the packaging body that exists with the xml language format.
When graphical interfaces is operated, trigger xml script interface engine by the xml interface list among Fig. 2, this interface engine to the xml interface make an explanation, collection parameter information and send to the interface encapsulation unit, this interface encapsulation unit can be discerned this information pairing interface function in interface library, and call this interface function, afterwards, packaged information is issued figure organize subelement, and then make up graphic presentation in the xml document structure tree in Fig. 2, and the inner data of preserving.
After editing operation finishes, can generate by the operation among Fig. 2-xml, trigger the xml file of the generation of xml script and output unit work and generating structureization.
A kind of structurized extend markup language disposal route of the present invention as shown in Figure 3, may further comprise the steps:
The xml script engine of receiving is explained in step S310, the typing of formative xml file, calls xml interface function corresponding in the xml interface library, and encapsulates returned respective x ml interface structure by this function; Specifically comprise: trigger the xml interface engine, the xml interface is made an explanation; Return respective x ml interface flag structure according to the information of explaining; The xml interface structure that all xml interface functions are returned carries out abstract package.
Step S320, xml packaging body and xml interface library carry out alternately, find corresponding interface to constitute form in the xml interface library, and format information is fed back to the xml packaging body.
Step S330, xml packaging body are resolved the xml file structure, xml interface structure processing entities after the identification encapsulation, find corresponding xml interface function in the xml interface library, the xml interface function that calls xml script correspondence is resolved the xml interface structure after the encapsulation.
Step S340, script file is expressed as graphical interfaces, makes up graphical interfaces and be shown to the user and edit; Comprise response and preserve the users' interfaces operation and the parameter input, and on the graphical interfaces that makes up the dynamically action of display operation and the result of input.
Step S350, response interface operation comprise editing operations such as file modifying, increase, deletion, position adjustment, graphical interfaces information behind the editor is collected, use the parameter at interface to carry out the variable replacement, be expressed as structurized xml script file according to Interface Microstructure, and preserve the new xml file of generation with the form of byte stream.
The technology of graphical interfaces editor xml script can adopt existing various possible schemes according to practical application in the above preferred embodiment, is well known to those skilled in the art, and also repeats no more at this.
A kind of structurized extensible markup language editing device and the disposal route that are provided in the specific embodiment of the invention, owing to adopted the mode that makes up figure interface for users editor's xml script and encapsulation abstracted information, workload and minimizing editor error rate that the xml script is handled have been alleviated, the operation interface of hommization is friendly more, make editor simple and convenient more, increase editor's reliability, dirigibility and convenience, when increasing work efficiency, also can reduce the cycle of program development and the workload of debugging.
Should be understood that; for those of ordinary skills; can be improved according to the explanation of such scheme or conversion, for example be used for the editor of html script etc., and all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (10)

1. a structurized extensible markup language editing device is characterized in that, described editing device comprises xml script interface engine, xml interface encapsulation unit and the xml interface library that links to each other successively, wherein:
Described xml script interface engine is used for the xml script of receiving is made an explanation, and will explain that gained information is sent to described xml interface encapsulation unit;
Described xml interface encapsulation unit is used for calling the corresponding xml interface function of described xml interface library according to the information that described xml script interface engine is explained, and return respective x ml interface flag structure, and then carry out abstract package and graphical interfaces shows required internal description by xml interface encapsulation unit by this xml interface function;
Described xml interface library is the set of xml interface function, is used to offer the structural information that described xml interface encapsulation unit calls each xml interface.
2. editing device according to claim 1, it is characterized in that, described editing device comprises that also the xml script that links to each other with described xml interface encapsulation unit generates and output unit, is used to collect graphical interfaces information, and is expressed as structurized xml script file according to Interface Microstructure.
3. editing device according to claim 2, it is characterized in that, described xml script generates and output unit is expressed as structurized xml script file according to Interface Microstructure, be specially that described xml script generates and output unit uses the parameter at interface to carry out the variable replacement, and with the xml script file of the form generating structureization of byte stream.
4. according to arbitrary described editing device among the claim 1-3, it is characterized in that, described xml interface encapsulation unit comprises that also figure organizes subelement, be used to resolve the xml interface structure that all xml interface functions is returned by described xml interface encapsulation unit and encapsulate information afterwards, and be shown to the user with graphical interfaces.
5. editing device according to claim 4, it is characterized in that, described figure organizes subelement also to comprise the sub-device of identification parsing, be used for discerning the xml interface structure packaging body after described xml interface encapsulation unit encapsulates, and be used for graphical interfaces is resolved and be configured to the xml interface structure after the encapsulation.
6. editing device according to claim 5, it is characterized in that, described figure organizes subelement also to comprise response input submodule, is used to respond users' interfaces operation and parameter input, and on the graphical interfaces that makes up the dynamically action of display operation and the result of input.
7. structurized extend markup language disposal route may further comprise the steps:
The xml script engine that A, explanation are received calls xml interface function corresponding in the xml interface library, and encapsulates returned respective x ml interface structure by this function;
Xml interface structure after B, the parsing encapsulation makes up graphical interfaces and is shown to the user and edits;
C, the graphical interfaces information after will editing are collected, and are expressed as structurized xml script file according to Interface Microstructure.
8. method according to claim 7 is characterized in that, described steps A specifically comprises:
A1, triggering xml interface engine make an explanation to the xml interface;
A2, return respective x ml interface flag structure according to the information of explaining;
A3, the xml interface structure that all xml interface functions are returned carry out abstract package.
9. method according to claim 7 is characterized in that, described step B specifically comprises:
Xml interface structure after B1, identification, the parsing encapsulation, and make up graphical interfaces;
B2, response are also preserved the users' interfaces operation and the parameter input;
B3, on the graphical interfaces that makes up the dynamically action of display operation and the result of input.
10. method according to claim 7 is characterized in that, described step C specifically comprises:
C1, collection graphical interfaces information;
The parameter at C2, use interface is carried out variable and is replaced;
C3, with the xml script file of the form generating structureization of byte stream.
CN200810218198A 2008-12-11 2008-12-11 Structured extensible markup language editing device and processing method Pending CN101751251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810218198A CN101751251A (en) 2008-12-11 2008-12-11 Structured extensible markup language editing device and processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810218198A CN101751251A (en) 2008-12-11 2008-12-11 Structured extensible markup language editing device and processing method

Publications (1)

Publication Number Publication Date
CN101751251A true CN101751251A (en) 2010-06-23

Family

ID=42478271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810218198A Pending CN101751251A (en) 2008-12-11 2008-12-11 Structured extensible markup language editing device and processing method

Country Status (1)

Country Link
CN (1) CN101751251A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289774A (en) * 2011-09-13 2011-12-21 上海普元信息技术股份有限公司 Graphical message processing and test system and method in financial transaction processing system
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
CN104007966A (en) * 2014-05-21 2014-08-27 广东明创软件科技有限公司 Application program interface control information checking method based on development and usage
CN102622215B (en) * 2011-01-27 2016-12-14 腾讯科技(深圳)有限公司 A kind of method based on Scripting Edition picture and text unit
CN107132975A (en) * 2017-05-26 2017-09-05 努比亚技术有限公司 A kind of control editing and processing method, mobile terminal and computer-readable recording medium
CN110489323A (en) * 2019-07-09 2019-11-22 北京字节跳动网络技术有限公司 Visual RPC API adjustment method, device, medium and equipment
CN112965759A (en) * 2021-03-04 2021-06-15 杭州优稳自动化系统有限公司 Script task management device and method for controlling engineering software

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6404978B1 (en) * 1998-04-03 2002-06-11 Sony Corporation Apparatus for creating a visual edit decision list wherein audio and video displays are synchronized with corresponding textual data
CN101266543A (en) * 2008-01-14 2008-09-17 中兴通讯股份有限公司 Graphical interfaces processing unit and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6404978B1 (en) * 1998-04-03 2002-06-11 Sony Corporation Apparatus for creating a visual edit decision list wherein audio and video displays are synchronized with corresponding textual data
CN101266543A (en) * 2008-01-14 2008-09-17 中兴通讯股份有限公司 Graphical interfaces processing unit and method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
CN102622215B (en) * 2011-01-27 2016-12-14 腾讯科技(深圳)有限公司 A kind of method based on Scripting Edition picture and text unit
CN102289774A (en) * 2011-09-13 2011-12-21 上海普元信息技术股份有限公司 Graphical message processing and test system and method in financial transaction processing system
CN104007966A (en) * 2014-05-21 2014-08-27 广东明创软件科技有限公司 Application program interface control information checking method based on development and usage
CN104007966B (en) * 2014-05-21 2017-07-21 广东明创软件科技有限公司 The Application Program Interface control information inspection method used based on exploitation
CN107132975A (en) * 2017-05-26 2017-09-05 努比亚技术有限公司 A kind of control editing and processing method, mobile terminal and computer-readable recording medium
CN110489323A (en) * 2019-07-09 2019-11-22 北京字节跳动网络技术有限公司 Visual RPC API adjustment method, device, medium and equipment
CN110489323B (en) * 2019-07-09 2023-04-25 北京字节跳动网络技术有限公司 Visual RPC API debugging method, device, medium and equipment
CN112965759A (en) * 2021-03-04 2021-06-15 杭州优稳自动化系统有限公司 Script task management device and method for controlling engineering software

Similar Documents

Publication Publication Date Title
CN106302008B (en) Data-updating method and device
EP1770510B1 (en) Executable and declarative specification for graphical user interfaces
CN102567198B (en) System and method for testing application program in physical system environment
US20020026447A1 (en) System for designing and performing web application
CN105739963B (en) The method and apparatus for generating webpage
CN103514072B (en) The adjustment method and device of a kind of graphical service for visual programming
CN104158836A (en) Method for rendering mobile application interface through data
CN101751251A (en) Structured extensible markup language editing device and processing method
CN104484216A (en) Method and device for generating service interface document and on-line test tool
CN113420201B (en) Cross-domain element positioning and tree generating method for browser RPA system
CN102479224A (en) Application webpage editing method and application webpage editing device
JPWO2008126796A1 (en) Technology for generating service programs
CN105068815A (en) Page editor interaction apparatus and method
CN101526942A (en) Component implementation technology for automatically generating dynamic web page on line in real time
CN110968944A (en) Method for displaying and operating CAD drawing at Web front end
CN106021102A (en) Automated test file generation method and apparatus
CN103678135A (en) System and method for achieving cross-process and cross-thread debugging in large-data environment
CN102289774A (en) Graphical message processing and test system and method in financial transaction processing system
CN101631262A (en) VoiceXML business integrated development system and realizing method thereof
CN102868717A (en) Method, device and system for editing and debugging voice extensible markup language script
CN106933568A (en) A kind of configuration software and a kind of industrial control method
CN110134380A (en) A kind of code generating method based on template engine, device and electronic equipment
CN108984156A (en) A kind of software auto generating method and system for exempting from code development based on template
CN101976190B (en) DirectUI based interface generating system and method
Kapoor et al. Mathaino: simultaneous legacy interface migration to multiple platforms

Legal Events

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

Application publication date: 20100623