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.SAXNotSupportedException
SAXNotRecognizedException
public void setExternalLocations(String locations) throws SAXNotRecognizedException, SAXNotSupportedException
public XMLCatalogResolver getCachedLSResolver()
public void setCatalogResolver(XMLCatalogResolver resolver)
Copyright © 2019. All rights reserved.