Against for a series of problems with the currently existing of bad modifiability and reusability for the traditional user interface development method, first propose a general-purpose interface automatically generated model--GIAGM, including interface configuration, interface customization, interface generating, the interface control and interface management mechanism, further put forward a interface interaction method based on message control. Research work to achieve an XML-based general-purpose interface automatically generated system. The application of the system not only allows the software development easier and faster, but also easy to maintain. Finally, the instance is introduced for the interface automatically generated system has good scalability and customization capabilities, can reduce the complexity of the interface development, improve the efficiency of the development.