接口 DocumentLoader
- 所有已知实现类:
DefaultDocumentLoader
public interface DocumentLoader
Strategy interface for loading an XMLDocument
.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop
- 另请参阅:
DefaultDocumentLoader
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Document
loadDocument(InputSource inputSource, EntityResolver entityResolver, ErrorHandler errorHandler, int validationMode, boolean namespaceAware)
方法详细资料
loadDocument
Document loadDocument(InputSource inputSource, EntityResolver entityResolver, ErrorHandler errorHandler, int validationMode, boolean namespaceAware) throws Exception
- 参数:
inputSource
- the source of the document that is to be loadedentityResolver
- the resolver that is to be used to resolve any entitieserrorHandler
- used to report any errors during document loadingvalidationMode
- the type of validationDTD
orXSD
)namespaceAware
-true
if support for XML namespaces is to be provided- 返回:
- the loaded
document
- 抛出:
Exception
- if an error occurs