Top Description Methods
org.springframework.beans.factory.xml

public Interface DocumentLoader

Known Direct Implementers
org.springframework.beans.factory.xml.DefaultDocumentLoader
Imports
org.w3c.dom.Document, org.xml.sax.EntityResolver, .ErrorHandler, .InputSource

Strategy interface for loading an XML Document.
Author
Rob Harrop
Since
2.0
See Also
DefaultDocumentLoader

Method Summary

Modifier and TypeMethod and Description
public Document

Returns:

the loaded document
loadDocument
(InputSource
the source of the document that is to be loaded
inputSource
,
EntityResolver
the resolver that is to be used to resolve any entities
entityResolver
,
ErrorHandler
used to report any errors during document loading
errorHandler
,
int
the type of validation DTD or XSD)
validationMode
,
boolean
true if support for XML namespaces is to be provided
namespaceAware
)

Load a document from the supplied source.

Method Detail

loadDocumentback to summary
public Document loadDocument(InputSource inputSource, EntityResolver entityResolver, ErrorHandler errorHandler, int validationMode, boolean namespaceAware) throws Exception

Load a document from the supplied source.

Parameters
inputSource:InputSource

the source of the document that is to be loaded

entityResolver:EntityResolver

the resolver that is to be used to resolve any entities

errorHandler:ErrorHandler

used to report any errors during document loading

validationMode:int

the type of validation DTD or XSD)

namespaceAware:boolean

true if support for XML namespaces is to be provided

Returns:Document

the loaded document

Exceptions
Exception:
if an error occurs