Constructor and Description |
---|
XmlSchemaValidator(java.io.File xmlSchema)
Create an instance.
|
XmlSchemaValidator(java.io.InputStream xmlSchema)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(java.io.InputStream xmlInstance)
Validate that the contents of a stream meets the expectations.
|
public XmlSchemaValidator(java.io.File xmlSchema) throws java.io.IOException
xmlSchema
- The XML Schema to use for validationjava.io.IOException
- When the schema could not be foundpublic XmlSchemaValidator(java.io.InputStream xmlSchema)
xmlSchema
- The XML Schema to use for validation