In this paper we proposed an XML-based data gateway that support enterprises developing an enterprise-wide data warehouse system. The gateway allows data warehouse developer automatic extracting data from distributed and heterogeneous data sources and translate them into XML documents, then the system use XML schema to validate (scrubbing, translation, summarizing, packing, etc.) the XML documents. Finally, the validated XML documents are translated into specific format stored in a data warehouse. The proposed gateway is expected to save enterprises much of manpower, money and time while enterprise develops an enterprise-wide data warehouse.