public class XsdDOMValidator extends XsdValidator
SCHEMA_FACTORY| Constructor and Description |
|---|
XsdDOMValidator(Document document) |
| Modifier and Type | Method and Description |
|---|---|
URI |
getDefaultNamespace() |
static String |
getDefaultNamespace(Element element)
Get the default namespace associated with the supplied element.
|
List<URI> |
getNamespaces() |
void |
validate()
Validate the document against the namespaces referenced in it.
|
setErrorHandler, setSchemaFactory, setSchemaSourceResolver, setXSDSources, validatepublic XsdDOMValidator(Document document) throws SAXException
SAXExceptionpublic URI getDefaultNamespace()
public void validate()
throws SAXException,
IOException
SAXException - Validation error.IOException - Error reading the XSD Sources.Copyright © 2020. All rights reserved.