public interface RNGLoader extends SubDocumentTypeLoader
Modifier and Type | Method and Description |
---|---|
SubDocumentType |
loadSubDocumentType(Document document)
Load the schema contained in specified document.
|
SubDocumentType |
loadSubDocumentType(URL sourceFile,
boolean isCompactSyntax,
String compactSyntaxEncoding)
Load the possibly composite schema found in specified target
namespace/URL pairs.
|
getLoadErrors, getLoadWarnings, loadSubDocumentType
SubDocumentType loadSubDocumentType(URL sourceFile, boolean isCompactSyntax, String compactSyntaxEncoding) throws IOException
sourceFile
- The URL of the file containing the schema.isCompactSyntax
- true
if sourceFile
contains a schema using the compact syntax; false
if it
contains a schema using the XML syntaxcompactSyntaxEncoding
- The encoding used for sourceFile,
when this file uses the compact syntax.null
if the loaded schema is
invalid or if sourceFile does not specify a RELAX NG schema.IOException
- if an IO problem occurs when loading the schema.SubDocumentType loadSubDocumentType(Document document)
document
- Document containing the schema (that is, its root
element is grammar).null
if the loaded schema is
invalid or if document does not specify a RELAX NG schema.