Abstract:XML (Extensible Markup Language) is widely used in various applications for data storage and data exchange for it is light,structured,and cross-platform supported.However,the translation of XML documents between two browsers is not the same.This article introduces how the two major browsers-IE and Firefox to read XML file,and analyzes the differences between these two browsers.Then it proposes a general method which is constructed base on the W3C standard,in order to reduce the duplication of coding which causes by the browser differences.