Automatic Generation of Software Interface Based on XML Technology
暂无分享,去创建一个
The software interface is a kind of operable and observable visual display form for the user. In the development of a remote monitoring system, the software interface is faced with many sets of equipment, complicated mode and many parameters, which brings great difficulty to design the software interface. This paper presents a kind of XML file as the medium, with custom control as a means to automatically arrange the control as a container, to design the interface flexibly, which is simple, flexible and greatly improve the work efficiency. This method is advanced, easy and the interface configuration is flexible, and it has good application value. Introduction The software interface is a graphical display form provided by the application program to the user. The interface elements generally consists of controls such as edit boxes, text boxes, buttons, tags and graphics, which are used to view data information and set control information. So the software interface is to give users the most intuitive visual experience, in addition to improving the software operability, convenience, the programmers often spend at least half of the energy for the software interface art, to attract users to promote the software market, such as some commercial software. However, small debugging software, such as software simulator, spend too much energy for the interface design, is worth the candle. This paper presents a kind of XML file as the medium, to customize the control as a means to automatically arrange the control as a container, to achieve a large data software interface automatically generated, greatly improves the efficiency of software development, and has been successfully applied to a certain type software simulator, and achieves good results. Software Design In the development of a type of equipment remote monitoring system, it needs software simulator to build a closed-loop test environment in the laboratory, after the completion of the software preparation work. However, because the monitoring and control equipment with multiple sets of systems, each system has a variety of operating modes and subsystems, each work mode corresponding to the subsystems have a lot of monitoring data. Such a large amount of data, such as the use of conventional software interface design method, will be a huge project, this article provides a simple way to achieve software interface design, software flow shown in Figure 1. The core technology of software design is XML (eXtensible Markup Language) technology [1,2,3] , which is a regular description language, language example shown in Figure 2. Where A is the XML prelude, version represents the version number, encoding represents the encoding type; B is the XML tag, contains the element and attribute, attrs is the root element, devType, edition is the attribute; C is the XML annotation, which is used to explain the defined attribute; D is a child element (node), also includes elements and attributes; E is a child element (child node) in child element, and element and attribute. Whether the root element or the child element, for the XML definition must be closed, such as the definition of root element, must be defined end.