The China Ship Development and Design Center has built several separate database systems in the design center and the working groups. However, the data cannot be shared and exchanged due to no network connection as the secrecy provision limited. The paper presents the data integration method based on the XML to implement the data integration between the heterogeneous databases, which makes the data interactive convenient. The key technologies included the mapping from database to XML documents, the XML documents importing to database, querying and displaying XML documents were analyzed. The SQLToXML and XMLToSQL libraries are used to develop the program. The method has put into test, the result shows the design scheme is rationality and effective.