摘要
介绍了解析XML文档的两种重要方法 :DOM、SAX ,重点探讨了SAX的优点及其在XML解析器中的应用 ,最后给出SAX解析器的两个应用示例 :遍历XML文档。
The article introduces the two most important ways to parse XML: DOM and SAX, and meanwhile, discusses the advantages of SAX and its application to parsers in detail. In the end, the authors give two SAX parser examples in XML applications, which illustrate how to create a duplicate XML document through parsing procedure and to create an XML template document according to DTD. Both examples are coded in Java.
出处
《茂名学院学报》
2002年第4期53-55,64,共4页
Journal of Maoming College