类 | 描述 |
---|---|
DocumentBuilder |
定义从一个XML文档的DOM API获取文档实例。
|
DocumentBuilderFactory |
定义了一个API,使应用程序工厂获得解析器生成DOM对象树的XML文档。
|
SAXParser |
定义包装
XMLReader 实现类的API。
|
SAXParserFactory |
定义了一个API,使应用程序工厂配置和获取SAX解析器解析XML文件。
|
异常 | 描述 |
---|---|
ParserConfigurationException |
表示严重的配置错误。
|
Error | 描述 |
---|---|
FactoryConfigurationError |
当配置与解析器工厂存在的问题时抛出。
|
提供允许处理XML文档的类。两类解析器支持可插拔:
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.