public class SchemaValidator extends Object
| Constructor and Description |
|---|
SchemaValidator()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
XMLCatalogResolver |
getCachedLSResolver() |
void |
setCatalogResolver(XMLCatalogResolver resolver) |
void |
setExternalLocations(String locations) |
ProblemContainer |
validate(StreamSource schema)
Validate the given schema.
|
public ProblemContainer validate(StreamSource schema)
schema - URL of the schema.SAXNotSupportedExceptionSAXNotRecognizedExceptionpublic void setExternalLocations(String locations) throws SAXNotRecognizedException, SAXNotSupportedException
public XMLCatalogResolver getCachedLSResolver()
public void setCatalogResolver(XMLCatalogResolver resolver)
Copyright © 2020 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.