public class SchemaValidator
extends java.lang.Object
Constructor and Description |
---|
SchemaValidator(javax.xml.transform.Source schemaFileResource) |
SchemaValidator(javax.xml.transform.Source[] schemaFileResources) |
SchemaValidator(java.lang.String schemaUrl) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
void |
validateXML(byte[] xmlData) |
void |
validateXML(java.io.File xmlFile) |
void |
validateXML(java.io.InputStream xmlStream) |
public SchemaValidator(java.lang.String schemaUrl) throws java.lang.Exception
java.lang.Exception
public SchemaValidator(javax.xml.transform.Source schemaFileResource) throws java.lang.Exception
java.lang.Exception
public SchemaValidator(javax.xml.transform.Source[] schemaFileResources) throws java.lang.Exception
schemaFileResources
- the order is important here!java.lang.Exception
public void validateXML(byte[] xmlData) throws java.lang.Exception
java.lang.Exception
public void validateXML(java.io.File xmlFile) throws java.lang.Exception
java.lang.Exception
public void validateXML(java.io.InputStream xmlStream) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception