public class XmlSchemaValidator extends Object
| Constructor and Description |
|---|
XmlSchemaValidator(String namespace,
File... schemaFiles)
Creates a new instance of a validator for the given namespace with the
schema resource.
|
XmlSchemaValidator(String namespace,
URL... schemaResources)
Creates a new instance of a validator for the given namespace with the
schema resource.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matchesNamespace(String uri) |
List<String> |
validate(Node xmlFile) |
public XmlSchemaValidator(String namespace, URL... schemaResources) throws SAXException
namespace - the target namespaceschemaResources - the resourcesSAXException - when the schema cannot be processedpublic XmlSchemaValidator(String namespace, File... schemaFiles) throws SAXException
namespace - the target namespaceschemaFiles - the resources as filesSAXException - when the schema cannot be processedpublic boolean matchesNamespace(String uri)
public List<String> validate(Node xmlFile) throws SAXException, IOException
SAXExceptionIOExceptionCopyright © 2015–2019 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.