摘要
XML(可扩展标记语言)因为其轻便简洁、结构严谨、跨平台支持等多种特性,现已广泛地应用于各种应用程序的数据存储、数据交换当中。但不同的浏览器对XML文档的处理方法并不完全一致。介绍了IE和Firefox两种主流浏览器读取XML文件的方法,并简单分析了两种浏览器的区别,提出了在W3C标准下重新构造一些通用方法,从而解决因浏览器差异而引致的重复代码的劳动。
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.
出处
《电脑与电信》
2010年第6期71-73,共3页
Computer & Telecommunication