摘要
用Java解析XML文档,最常用的有两种方法:使用基于事件SAX和基于树和节点的文档对象模型DOM。该文给出一种基于Java的采用DOM的XML解析器的实现方法,详细给出了该方法的设计方案和所用到的关键类和算法。
Using Java parsing XML documents,the two most commonly used methods:a event-based Simple API for XML called SAX and the Document Object Model known as DOM.This paper presents a DOM-based XML parser implemented by Java language,describing the design of the program,the key algorithm and the important class in detail.
出处
《电脑知识与技术》
2010年第9X期7641-7642,共2页
Computer Knowledge and Technology