This paper presents a new technique called XDEHD for integrating heterogeneous XML schemas to create a mediated schema that is both complete and minimal. The technique involves extracting subschemas from various sources, matching them based on semantic closeness, and then integrating the relevant subschemas to avoid duplication. The final mediated schema preserves all relations and contents from the original sources while ensuring efficient data access across different applications.