CN107451107A - Data-flow conversion method and device based on XML - Google Patents
Data-flow conversion method and device based on XML Download PDFInfo
- Publication number
- CN107451107A CN107451107A CN201710681363.XA CN201710681363A CN107451107A CN 107451107 A CN107451107 A CN 107451107A CN 201710681363 A CN201710681363 A CN 201710681363A CN 107451107 A CN107451107 A CN 107451107A
- Authority
- CN
- China
- Prior art keywords
- data flow
- data
- data stream
- flow
- dll
- 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
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 52
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000007639 printing Methods 0.000 claims abstract description 30
- 230000009466 transformation Effects 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 11
- 230000008859 change Effects 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000010276 construction Methods 0.000 description 4
- 230000000295 complement effect Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 239000008896 Opium Substances 0.000 description 1
- 208000004224 Opium Dependence Diseases 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000010006 flight Effects 0.000 description 1
- 238000005194 fractionation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 229960001027 opium Drugs 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000005498 polishing Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/149—Adaptation of the text data for streaming purposes, e.g. Efficient XML Interchange [EXI] format
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Document Processing Apparatus (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a kind of data-flow conversion method and device based on XML.Wherein, this method includes:Obtain the first data flow;DLL modules are called, and the first data flow is inputted into DLL modules, wherein, DLL modules are used to handle the first data flow according to the data stream rule being pre-configured with by XML file and generate the second data flow, and data stream rule includes:Delete or add the form of the one or more element in the first data flow of one or more element or conversion in the first data flow;Receive the second data flow that DLL modules return.By the present invention, solve the problems, such as that airport departure system can not meet the printing demand of various data stream formats in correlation technique, meet the printing demand to a variety of data stream formats.
Description
Technical field
The present invention relates to data processing field, in particular to a kind of data-flow conversion method and dress based on XML
Put.
Background technology
The Civil Aviation Industry in China is in develop rapidly among, passenger service is the important component of Commercial Air Service, daily
The airport in the whole nation can all handle large batch of travelling.At present, what airport used handles the information system of passenger boarding, i.e., from
Port system (Departure Control System, referred to as DCS), handling process include passenger's check-in and boarding two parts.
In passenger's check-in, this passenger boarding board is printed, if luggage, it is also necessary to print luggage check.These playing cards are all passengers
The important documents seized the opportunity.Therefore, print job is particularly important in departure system.
The boarding card and luggage check printer purchased by airport are different, and different airports are to the passenger of extraction
Printing board information also require different, in addition, the data stream format of the departure from port main frame of chief information officer department of civil aviaton also have No. 0,1
Number, point of a variety of data flows such as No. 2.In order to adapt to the specific requirement on various regions airport, in departure system operation, generally require to repair
Change application program and specifically print requirement to adapt to airport, cause the version of application program inconsistent, be not easy to regular maintenance,
Being gone into operation to system, it is very big passive to cause.
Various regions airport Printing Problem is all than more prominent at present.Because in the market printer model is numerous, printer software version
This is inconsistent, and the feedback information of various printers is also inconsistent, and departure system is all passively to adapt to locality to beat on various regions airport
Print machine.Because data flow is varied, printer situation varies, neither one unified standard, therefore the operation of system is real
It is excessive to apply the consuming energy on printer test.
The content of the invention
(eXtensible Markup Language, it is referred to as based on extensible markup language the invention provides one kind
XML data-flow conversion method and device), various data flows can not be met at least to solve airport departure system in correlation technique
The problem of printing demand of form.
According to an aspect of the invention, there is provided a kind of data-flow conversion method based on XML, including:
Obtain the first data flow;
Dynamic link library (Dynamic Link Library, referred to as DLL) module is called, and by first data flow
The DLL modules are inputted, wherein, the DLL modules are used for according to the data stream rule being pre-configured with by XML file to institute
State the first data flow to be handled and generate the second data flow, the data stream rule includes:Delete or add described
The lattice of one or more element in one data flow or the one or more element in conversion first data flow
Formula;
Receive second data flow that the DLL modules return.
Alternatively, first data flow includes:The data of the passenger's boarding card to be printed sent by airport departure system
Stream, or the data flow of the passenger's luggage check to be printed sent by airport departure system.
Alternatively, dynamic link library (DLL) module is called, and first data flow is inputted into the DLL modules also to include:
The data stream type of first data flow is inputted into the DLL modules, wherein, the data stream type includes:Boarding card number
According to stream type and luggage check data stream type;
Wherein, the DLL modules are additionally operable to according to the number corresponding with the data stream type being pre-configured with as XML file
First data flow is handled according to stream transformation rule and generates the second data flow.
Alternatively, before dynamic link library (DLL) module is called, methods described also includes:Configured in the XML file
The data stream rule.
Alternatively, after second data flow that the DLL modules return is received, methods described also includes:By institute
State the second data flow to send to printer, to realize the printing to second data flow.
According to another aspect of the present invention, a kind of data stream conversion device based on XML is additionally provided, including:
Acquisition module, for obtaining the first data flow;
Processing module, the DLL modules are inputted for calling dynamic link library (DLL) module, and by first data flow,
Wherein, the DLL modules are carried out for basis by the data stream rule that XML file is pre-configured with to first data flow
Handle and generate the second data flow, the data stream rule includes:Delete or add one in first data flow
Or the form of multinomial element or the one or more element in conversion first data flow;
Receiving module, second data flow returned for receiving the DLL modules.
Alternatively, first data flow includes:The data of the passenger's boarding card to be printed sent by airport departure system
Stream, or the data flow of the passenger's luggage check to be printed sent by airport departure system.
Alternatively, the processing module is additionally operable to:The data stream type of first data flow is inputted into the DLL moulds
Block, wherein, the data stream type includes:Boarding card data stream type and luggage check data stream type;
Wherein, the DLL modules are additionally operable to according to the number corresponding with the data stream type being pre-configured with as XML file
First data flow is handled according to stream transformation rule and generates the second data flow.
Alternatively, described device also includes:Configuration module, for configuring the data stream in the XML file
Rule.
Alternatively, described device also includes:Sending module, for second data flow to be sent to printer, with reality
Now to the printing of second data flow.
By the present invention, using obtaining the first data flow;DLL modules are called, and the first data flow is inputted into DLL modules,
Wherein, DLL modules are used to the first data flow is handled and given birth to according to the data stream rule being pre-configured with by XML file
Into the second data flow, data stream rule includes:Delete or addition the first data flow in one or more element or
Change the form of the one or more element in the first data flow;Receive the mode for the second data flow that DLL modules return, solution
Airport departure system can not meet the problem of printing demand of various data stream formats in correlation technique of having determined, and meet to a variety of
The printing demand of data stream format.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the data-flow conversion method according to embodiments of the present invention based on XML;
Fig. 2 is the structured flowchart of the data stream conversion device according to embodiments of the present invention based on XML;
Fig. 3 is the alternative construction block diagram one of the data stream conversion device according to embodiments of the present invention based on XML;
Fig. 4 is the alternative construction block diagram two of the data stream conversion device according to embodiments of the present invention based on XML;
Fig. 5 be in the data-flow conversion method according to embodiments of the present invention based on XML various primary source data flows and
The circulation relation schematic diagram that different printers pass through data stream resume module;
Fig. 6 is that the data stream conversion device according to embodiments of the present invention based on XML applies system knot in departure system
Structure schematic diagram.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
A kind of data-flow conversion method based on XML is provided in the present embodiment, and Fig. 1 is according to embodiments of the present invention
The flow chart of data-flow conversion method based on XML, as shown in figure 1, the flow comprises the following steps:
Step S101, obtain the first data flow;
Step S102, dynamic link library (Dynamic Link Library, referred to as DLL) module is called, and by first
Data flow inputs DLL modules, wherein, DLL modules are used for according to the data stream rule being pre-configured with by XML file to first
Data flow is handled and generates the second data flow, and data stream rule includes:Delete or add one in the first data flow
The form of item or multinomial element or the one or more element in the first data flow of conversion;
Step S103, receive the second data flow that DLL modules return.
By above-mentioned step, encapsulation of data circulation scaling method and data are pre-configured with by XML file in DLL modules
Flow transformation rule so that each airport can require according to the different printings in the airport or course line, delete or add and wait to beat
The boarding card of print is either in the one or more element in luggage check or conversion boarding card or luggage check to be printed
The form of one or more element, various data stream formats can not be met so as to solve airport departure system in correlation technique
Printing demand the problem of, meet the printing demand to a variety of data stream formats.Further, since using software transfer DLL moulds
Block and by XML file configuration data stream transformation rule, after the front-end software of deployment airport departure system, need to adapt to it is different
Personalized printing demand when, it is not necessary to change the program code of front-end software in itself;It is known as more in data stream format or member
When new, it is only necessary to redeploy DLL modules and update the configuration information of XML file, alleviate departure from port front end system to answer
The pressure that various regions airport individual demand is frequently changed, upgraded.
The front-end software of above-mentioned airport departure system includes but is not limited to:Check-in software, boarding software.
It should be noted that, although the data-flow conversion method based on XML of the present invention is according to airport departure system
Using the innovation and creation made by reality, but the present invention is applied in other are similar to scene and can be contemplated, example
The personalized of such as supermarket's sales check prints other ticketing services or the personalization of voucher, differentiation printing.Implement in the present invention
, will be illustrative to the present invention by taking the boarding card in civil aviation business field, luggage check printing as an example in example.
Alternatively, the first above-mentioned data flow includes:The number of the passenger's boarding card to be printed sent by airport departure system
According to stream, or the data flow of the passenger's luggage check to be printed sent by airport departure system.
The DLL modules provided in the embodiment of the present invention can be obtained by following mode:1st, the boarding based on XML is defined
Board, luggage check data flow every element DTD (Document Type Definition, referred to as DTD);
The 2nd, data stream rule based on XML is set;3rd, write the programmed algorithm for data stream rule and be packaged into independence
DLL modules.The generating mode of DLL modules will be illustrated with one below.
1st, define the boarding card based on XML, luggage check data flow every element DTD, including to data flow according to head
Portion, the fractionation definition of text, afterbody, and define above-mentioned three parts each attribute and each several part to each seed items of needs
Nested inclusion relation definition;When using a variety of data stream types, the data progress DTD to different pieces of information stream type determines respectively
Justice, for example, boarding card data flow head, afterbody, text format definition, and luggage check data flow head, afterbody, text format
Two kinds are defined, is determined respectively as the Doctype of boarding card data stream XML file, luggage check data stream XML file
Justice;
The 2nd, data stream rule based on XML, including the sub- content turn for being related to data flow head styles, including are set
Change rule;Data flow afterbody pattern, comprising sub- Content Transformation rule;The pattern of each data flow item in data flow text, comprising
Sub- content accept or reject (or for selection), addition, conversion;
3rd, write the programmed algorithm for data stream rule and be packaged into independent DLL modules, for example, using programming language
Speech (such as C++, Java language) realizes the data stream rule based on XML language statement, forms transfer algorithm, and by algorithm
It is packaged with DLL modules, the external individual packages that call parameters are provided, are available for extraneous software and routine call of formation one
Module, application is externally provided in this format.Specifically, it is by boarding card data stream rule and luggage check data stream
Rule carries out Unified Algorithm processing in XML file level, data stream type (the boarding card number to be converted being passed to front end system
According to stream or luggage check data flow) and data flow character string (i.e. the character string of the first data flow) as incoming parameter, according to
The boarding card data stream rule XML file and luggage check data flow for the departure from port front end system actual disposition that local airport is gone into operation
Transformation rule XML file specific requirement, realize to the initial passenger boarding board data flow of departure from port main frame and luggage check data flow
Conversion, working process, and the result data stream character string after conversion is generated, and return at caller.
After encapsulating to obtain DLL modules according to aforesaid way, specific to airport departure system front-end software to DLL moulds
, it is necessary to externally be provided according to data stream DLL using the departure system front-end software of data stream function during the calling of block
Interface requirement and using rule, realize call it is complete so as to meet in the departure from port check-in of front end system, boarding software
Individual requirement of the state various regions airport for boarding card, luggage check printing content, printing content genres etc..
Because the voucher for needing to print in airport departure system includes boarding card and luggage check, therefore, the embodiment of the present invention
The data-flow conversion method based on XML provided is also required to change the data flow of boarding card and luggage check.
Currently for the initial boarding card data flow from departure from port host computer system, luggage check data flow (equivalent to the first number
According to stream), the XML transformation rules that can be configured include:Two kinds of data flow head conversion, list is purchased to adapt to domestic some airports
The printer of one brand and model, it is desirable to the needs of boarding card and luggage check can be printed;Data flow afterbody specific character takes
House, meet whether boarding check printer, the luggage check printer on domestic some airports are necessary to data flow afterbody specific character
Reality;Increase, modification, the deletion of data flow text items content, it is related to data flow subitem output length requirement, basis
Airport particular requirement intercept some contents, for print to the flight date on board, the format conversion of the boarding departure time will
Ask, local airport opens the automatic place of each airline LOGO for printing to board marks that sales counter handles more airline flights
Reason requires, prints all content for printing boarding card, luggage check aesthetic based on airport printer and guard station airline
Arrangement position and space polishing intercut addition specific character, the ban on opium-smoking and the opium trade markup character such as boarding card prints;It is right
Answer and boat station is originated above the passenger boarding board of airport requirements, purpose boat is stood when whether three-letter codes will print and is converted into Chinese
The reality needs of title;Passenger boarding board bar code, two-dimensional bar code content for current domestic various regions airport do personalization
Configuration requirement.If airport can use the initial data stream of departure from port host computer system just, and need not do any additional turn
Change, then can is set by XML file accomplishes to remain untouched to initial data stream.
In order to realize the conversion of the data flow to boarding card and luggage check, a kind of data stream mode that can be contemplated
It is that the data stream of the data stream for boarding card and luggage check uses two DLL modules respectively, and use two XML
Data stream rule is respectively configured in file.This mode can realize the purpose of the present invention, but existing will dispose point respectively
The defects of not safeguarding.
Because boarding card data flow is identical with the transfer principle of luggage check data flow, for the ease of disposing and safeguarding, this hair
Another data stream mode is employed in bright embodiment, i.e., boarding card number is carried out using same DLL module selectives
Changed according to circulation or luggage check data stream;XML file is respectively adopted configures it for the data flow of different pieces of information stream type
Data stream rule.
In order to realize the function, DLL modules need to know the data stream type of input be boarding card data stream type or
Luggage check data stream type.The mode of identification data stream type has many kinds, for example, can be sentenced by data stream format
Not, the keyword either in data flow is differentiated or differentiated by default mark in data flow, Huo Zhegen
Mark according to the sending port of data flow differentiates etc.;Can also by the way of manual configuration switches default data flow lattice
Formula.
Alternatively, in the case where considering data stream type, dynamic link library (DLL) module is called, and by the first data flow
Input DLL modules also include:The data stream type of first data flow is inputted into DLL modules, wherein, data stream type includes:Step on
Machine board data stream type and luggage check data stream type;DLL modules are then according to be pre-configured with by XML file and data stream type
Corresponding data stream rule is handled the first data flow and generates the second data flow.
By the above-mentioned means, sales counter operator handles passenger's check-in using departure from port front-end software, after passenger receives successfully, from
Flight passenger boarding board initial data stream to be printed (equivalent to the first data flow) is got at departure from port main frame, if the trip
Visitor needs to check luggage, and departure from port main frame also can synchronously send the initial luggage check data flow of this passenger, then according to data flow
Type, using data flow character string and data stream type as call parameters, the conversion work(for calling data stream DLL externally to provide
Energy function, and converting result data stream character string (equivalent to character string of the second data flow) is subjected to reality output printing, it is full
Sufficient airport and guard station airline prints demand to passenger boarding board and luggage check.
Alternatively, before dynamic link library (DLL) module is called, the configuration data stream transformation rule in XML file.Typically
For, data stream rule can adapt to the data stream demand in certain time after configuration is good, in XML file
Abundant config option is provided, can be carried out deleting for each element in data flow or add operation, Huo Zhezhuan
The form of element is changed, so as to meet various personalized data stream demands;And the modification of XML configuration file is compared to repairing
Change more directly perceived and simple for software program code, be adapted to the general staff's operation for not having software programming professional knowledge.
Alternatively, after the second data flow that DLL modules return is received, then the second data flow can be sent to accordingly
Data Stream Processing equipment handled, for example, in the present embodiment send the second data flow to printer, to realize to the
The printing of two data flows.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
A kind of data stream conversion device based on XML is additionally provided in the present embodiment, and the device is used to realize above-mentioned reality
Example and preferred embodiment are applied, had carried out repeating no more for explanation.As used below, term " module " can be realized
The combination of the software and/or hardware of predetermined function.Although device described by following examples is preferably realized with software,
It is hardware, or the realization of the combination of software and hardware is also what may and be contemplated.
Fig. 2 is the structured flowchart of the data stream conversion device according to embodiments of the present invention based on XML, as shown in Fig. 2 should
Device includes:Acquisition module 21, processing module 22 and receiving module 23, wherein, acquisition module 21, coupled to processing module 22,
For obtaining the first data flow;Processing module 22, coupled to DLL modules 30, for calling DLL modules 30, and by the first data
Stream input DLL modules 30, wherein, DLL modules 30 be used for according to by the data stream rule that XML file 40 is pre-configured with to the
One data flow is handled and generates the second data flow, and data stream rule includes:Delete or add in the first data flow
The form of one or more element in the first data flow of one or more element or conversion;Receiving module 23, coupling
To DLL modules 30, for receiving the second data flow of the return of DLL modules 30.
Alternatively, the first data flow includes:The data flow of the passenger's boarding card to be printed sent by airport departure system, or
The data flow for passenger's luggage check to be printed that person is sent by airport departure system.
Alternatively, processing module 22 is additionally operable to:By the data stream type input DLL modules 30 of the first data flow, wherein, number
Include according to stream type:Boarding card data stream type and luggage check data stream type;Wherein, DLL modules 30 are additionally operable to according to by XML
The data stream rule corresponding with data stream type that file 40 is pre-configured with is handled the first data flow and generates
Two data flows.
Fig. 3 is the alternative construction block diagram one of the data stream conversion device according to embodiments of the present invention based on XML, such as Fig. 3
Shown, alternatively, the device also includes:Configuration module 20, coupled to XML file 40, for the configuration data in XML file 40
Flow transformation rule.
Fig. 4 is the alternative construction block diagram two of the data stream conversion device according to embodiments of the present invention based on XML, such as Fig. 4
Shown, alternatively, the device also includes:Sending module 24, coupled to receiving module 23, for the second data flow to be sent to beating
Print machine, to realize the printing to the second data flow.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned module is respectively positioned at more
In individual processor.
Embodiments of the invention additionally provide a kind of software, and the software is used to perform above-described embodiment and preferred embodiment
Described in technical scheme.
Embodiments of the invention additionally provide a kind of storage medium.In the present embodiment, above-mentioned storage medium can be set
It is set to the program code that storage is used to perform following steps:
Step S101, obtain the first data flow;
Step S102, dynamic link library (Dynamic Link Library, referred to as DLL) module is called, and by first
Data flow inputs DLL modules, wherein, DLL modules are used for according to the data stream rule being pre-configured with by XML file to first
Data flow is handled and generates the second data flow, and data stream rule includes:Delete or add one in the first data flow
The form of item or multinomial element or the one or more element in the first data flow of conversion;
Step S103, receive the second data flow that DLL modules return.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
Disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
Alternatively, the specific example in the present embodiment may be referred to described in above-described embodiment and optional embodiment
Example, the present embodiment will not be repeated here.
In order that the description of the embodiment of the present invention is clearer, it is described and illustrates with reference to preferred embodiment.
This preferred embodiment provides a kind of boarding voucher Method of printing of data-flow conversion method based on XML, the party
Method can apply to check-in software or boarding software, and can apply in the case of complement boarding card or luggage check.
This method comprises the following steps:
Step 1, front end system check-in software, boarding software are departed from port in airport sales counter startup optimization;
Step 2, for check-in software, sales counter operator is when handling passenger's check-in, it is necessary to print the boarding of the passenger
Board.After passenger's success is received, departure from port host computer system can be triggered and sent at the boarding card data flow return front-end software of the passenger.
Software calls data stream DLL module external interface functions, the DLL according to the data flow character string and data stream type of return
Module is according to the specific transformation rule that the algorithm of itself data stream XML file according to corresponding to configures and requires to input
Data flow character string items content enters line translation, and finally gives the data flow character string after conversion, returns at caller.Departure from port
This result data stream character string is sent to sales counter boarding check printer and printed by front-end software, and consigns to passenger boarding
Board;If need to check luggage during passenger's check-in, then operator is after adding the hand baggage and operating successfully, departure from port
Main frame can send luggage check data flow corresponding to this hand baggage to front-end software.Front-end software depart from port according to the luggage of return
Board data flow character string and data stream type call data stream DLL module interface functions, and the DLL modules are according to the calculation of itself
Data flow character of the specific transformation rule of method luggage check data stream XML file configuration according to corresponding to requirement to input
Every content of going here and there enters line translation, and finally gives the data flow character string after conversion, returns at caller.Departure from port front-end software handle
This result data stream character string is sent to sales counter luggage check printer and printed, then will print successful luggage check and be bonded to passenger
Circulation authority in registered luggage as luggage delivery;
Step 3, for boarding software, sales counter operator can scan trip when handling passenger boarding by scanner
Objective mobile phone two-dimension code, and parse the Quick Response Code content trigger boarding software transfer backstage storing process function and produce stepping on for the passenger
Machine board data flow, it now can also just realize that the printing of passenger boarding board requires at boarding sales counter.Realize the original of boarding card printing
Reason carries out boarding card printing unanimously with step 2 intermediate value rack platform software.
Step 4, for needing the passenger of complement boarding card or luggage check, can be beaten again in front-end software of departing from port
Board operates, and triggering departure from port host computer system resends initial boarding card data flow, the luggage check data flow of corresponding passenger, Ran Houli
The principle that port front-end software describes according to step 2 realizes the complement of passenger boarding board or luggage check.
Fig. 5 be in the data-flow conversion method according to embodiments of the present invention based on XML various primary source data flows and
Different printers are by the circulation relation schematic diagram of data stream resume module, as shown in figure 5, every kind of printer on right side is all
A kind of corresponding data stream format.
Fig. 6 is that the data stream conversion device according to embodiments of the present invention based on XML applies system knot in departure system
Structure schematic diagram, Fig. 6 are a kind of variants of structure shown in Fig. 4, and in figure 6, BPP refers to boarding card data flow, and BTP refers to go
Lee's board data flow, MSXML refer to the xml language parsers of Microsoft.
In summary, in data-flow conversion method and device provided in an embodiment of the present invention based on XML, set based on XML
The data stream configuration file of meter, departure system client software is set to can adapt on the premise of program code is not changed entirely
The different types of boarding check printer in state various regions airport, luggage check printer to data flow it is different require and local airport and
The personalized printing that guard station airline proposes requires that customization generation needs the data flow of form, pattern, and successful print goes out client
The passenger boarding board and luggage check of expectation, domestic various regions airport is greatly met because boarding card, the luggage check of buying print
Machine brand, type are different, and the printing demand that various regions airport is personalized to the data flow from departure from port host computer system, realize
Departure from port front-end software " coping with shifting events by sticking to a fundamental principle ", while bring the great flexibility that departure from port front-end software uses.The number of the present invention
Provided according to the use of stream transformation rule for the individual demand and development of airport in all parts of the country and guard station airline powerful
Technical support, also greatly alleviate departure from port front end system and frequently change to tackle various regions airport individual demand, upgrade
Pressure.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (10)
- A kind of 1. data-flow conversion method based on XML, it is characterised in that including:Obtain the first data flow;Dynamic link library (DLL) module is called, and first data flow is inputted into the DLL modules, wherein, the DLL modules For being handled according to the data stream rule being pre-configured with by XML file first data flow and generating the second number According to stream, the data stream rule includes:Delete or add one or more element in first data flow or Change the form of the one or more element in first data flow;Receive second data flow that the DLL modules return.
- 2. data-flow conversion method according to claim 1, it is characterised in that first data flow includes:By airport The data flow for passenger's boarding card to be printed that departure system is sent, or the passenger's luggage to be printed sent by airport departure system The data flow of board.
- 3. data-flow conversion method according to claim 2, it is characterised in that dynamic link library (DLL) module is called, and will First data flow, which inputs the DLL modules, also to be included:The data stream type of first data flow is inputted into the DLL modules, wherein, the data stream type includes:Boarding Board data stream type and luggage check data stream type;Wherein, the DLL modules are additionally operable to according to the data flow corresponding with the data stream type being pre-configured with as XML file Transformation rule is handled first data flow and generates the second data flow.
- 4. data-flow conversion method according to claim 1, it is characterised in that call dynamic link library (DLL) module it Before, methods described also includes:The data stream rule is configured in the XML file.
- 5. data-flow conversion method according to any one of claim 1 to 4, it is characterised in that receiving the DLL moulds After second data flow that block returns, methods described also includes:Second data flow is sent to printer, to realize the printing to second data flow.
- A kind of 6. data stream conversion device based on XML, it is characterised in that including:Acquisition module, for obtaining the first data flow;Processing module, the DLL modules are inputted for calling dynamic link library (DLL) module, and by first data flow, its In, the DLL modules are used for basis and first data flow are carried out by the data stream rule that XML file is pre-configured with Manage and generate the second data flow, the data stream rule includes:Delete or add one in first data flow or The form of the multinomial element of person or the one or more element in conversion first data flow;Receiving module, second data flow returned for receiving the DLL modules.
- 7. data stream conversion device according to claim 6, it is characterised in that first data flow includes:By airport The data flow for passenger's boarding card to be printed that departure system is sent, or the passenger's luggage to be printed sent by airport departure system The data flow of board.
- 8. data stream conversion device according to claim 7, it is characterised in that the processing module is additionally operable to:The data stream type of first data flow is inputted into the DLL modules, wherein, the data stream type includes:Boarding Board data stream type and luggage check data stream type;Wherein, the DLL modules are additionally operable to according to the data flow corresponding with the data stream type being pre-configured with as XML file Transformation rule is handled first data flow and generates the second data flow.
- 9. data stream conversion device according to claim 6, it is characterised in that described device also includes:Configuration module, for configuring the data stream rule in the XML file.
- 10. the data stream conversion device according to any one of claim 6 to 9, it is characterised in that described device is also wrapped Include:Sending module, for second data flow to be sent to printer, to realize the printing to second data flow.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710681363.XA CN107451107A (en) | 2017-08-10 | 2017-08-10 | Data-flow conversion method and device based on XML |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710681363.XA CN107451107A (en) | 2017-08-10 | 2017-08-10 | Data-flow conversion method and device based on XML |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107451107A true CN107451107A (en) | 2017-12-08 |
Family
ID=60491694
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710681363.XA Pending CN107451107A (en) | 2017-08-10 | 2017-08-10 | Data-flow conversion method and device based on XML |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107451107A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109976683A (en) * | 2019-02-28 | 2019-07-05 | 广州达安临床检验中心有限公司 | Method of printing, device, equipment and the storage medium of data |
CN111104648A (en) * | 2018-10-29 | 2020-05-05 | 鸿合科技股份有限公司 | Software processing method and device, application program and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055876A1 (en) * | 2001-08-29 | 2003-03-20 | Aravinda Korala | Printing web content from self-service kiosks |
JP2009163627A (en) * | 2008-01-09 | 2009-07-23 | Kyocera Mita Corp | Xps file generation program |
CN103109266A (en) * | 2010-02-25 | 2013-05-15 | Sita信息网络处理爱尔兰有限公司 | Software application development tool |
-
2017
- 2017-08-10 CN CN201710681363.XA patent/CN107451107A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055876A1 (en) * | 2001-08-29 | 2003-03-20 | Aravinda Korala | Printing web content from self-service kiosks |
JP2009163627A (en) * | 2008-01-09 | 2009-07-23 | Kyocera Mita Corp | Xps file generation program |
CN103109266A (en) * | 2010-02-25 | 2013-05-15 | Sita信息网络处理爱尔兰有限公司 | Software application development tool |
Non-Patent Citations (2)
Title |
---|
王春红 等: "基于XML的Web系统报表精确打印实现", 《现代电子技术》 * |
郭军军 等: "一种基于J2EE平台的通用Web票据打印服务技术", 《计算机应用与软件》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104648A (en) * | 2018-10-29 | 2020-05-05 | 鸿合科技股份有限公司 | Software processing method and device, application program and electronic equipment |
CN109976683A (en) * | 2019-02-28 | 2019-07-05 | 广州达安临床检验中心有限公司 | Method of printing, device, equipment and the storage medium of data |
CN109976683B (en) * | 2019-02-28 | 2022-08-02 | 广州达安临床检验中心有限公司 | Data printing method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20060294176A1 (en) | Customizable information processing apparatus | |
US7466442B2 (en) | Printing system and method for customization of a print job | |
US6429947B1 (en) | Automated, hosted prepress application | |
US6842263B1 (en) | Print system and printer device facilitating reuse of print data | |
US6353483B1 (en) | Postscript to bitmap conversion of graphic image files | |
US6381032B1 (en) | Postscript to PDF conversion of graphic image files | |
US7016865B1 (en) | Personalization format converter system and method | |
US20020131081A1 (en) | PostScript to bitmap conversion of graphic image files | |
US6559966B1 (en) | Trapping of graphic image files | |
US7952744B2 (en) | Controlling a configuration of an image forming apparatus | |
CN106528006A (en) | Page printing method and device | |
EP0512722B1 (en) | Document services architecture | |
US6633890B1 (en) | Method for washing of graphic image files | |
JP2016162184A (en) | Information processing system, information processing apparatus, control method, and computer program | |
US9456042B2 (en) | External device interface abstraction | |
CN107451107A (en) | Data-flow conversion method and device based on XML | |
JP2016522464A (en) | System and method for printable document viewer optimization | |
US6903839B1 (en) | Apparatus for washing of graphic image files | |
US6738152B1 (en) | Event-based printing | |
WO2006041340A1 (en) | Method for handling electronic documents | |
CN108052297A (en) | A kind of receipt content modification and printing equipment, system and method | |
JP5790267B2 (en) | Output control system and control method | |
CN106709745A (en) | Dynamic business card generation system and application method thereof | |
US20040119999A1 (en) | Image forming apparatus, print data processing device, and print data processing method | |
CN119806446A (en) | Printing task processing method and device |
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 |
Application publication date: 20171208 |
|
RJ01 | Rejection of invention patent application after publication |