public interface DocumentLoader
DefaultDocumentLoader
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
loadDocument(org.xml.sax.InputSource inputSource,
org.xml.sax.EntityResolver entityResolver,
org.xml.sax.ErrorHandler errorHandler,
int validationMode,
boolean namespaceAware)
Load a <code>document</code> from the supplied <code>source</code>.
|
org.w3c.dom.Document loadDocument(org.xml.sax.InputSource inputSource, org.xml.sax.EntityResolver entityResolver, org.xml.sax.ErrorHandler errorHandler, int validationMode, boolean namespaceAware) throws java.lang.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 validation
DTD
or XSD
)namespaceAware
- true
if support for XML namespaces is to be providedjava.lang.Exception
- if an error occurs