Interface DocumentLoader
- All Known Implementing Classes:
DefaultDocumentLoader
public interface DocumentLoader
Strategy interface for loading an XMLDocument
.- Since:
- 2.0
- Author:
- Rob Harrop
- See Also:
DefaultDocumentLoader
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Document
loadDocument(InputSource inputSource, EntityResolver entityResolver, ErrorHandler errorHandler, int validationMode, boolean namespaceAware)
Method Detail
loadDocument
Document loadDocument(InputSource inputSource, EntityResolver entityResolver, ErrorHandler errorHandler, int validationMode, boolean namespaceAware) throws Exception
- Parameters:
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- Returns:
- the loaded
document
- Throws:
Exception
- if an error occurs