public class ValidatorHelper extends Object
| Constructor and Description |
|---|
ValidatorHelper() |
| Modifier and Type | Method and Description |
|---|---|
List<File> |
getSchemaFiles(String xml,
List<File> state)
Get all local filenames that correspond to declared schemas.
|
void |
offlineValidate(String url,
String xml,
List<File> schemas)
Validate XML document supplied as a string.
|
void |
onlineValidate(String url,
String xml)
Validate XML document supplied as a string.
|
public List<File> getSchemaFiles(String xml, List<File> state) throws Exception
xml - blob of xml that may contain schemaLocationExceptionpublic void offlineValidate(String url, String xml, List<File> schemas) throws Exception
Validates against the local copy of the XML schema specified as schemaLocation in document
xml - ExceptionCopyright © 2015 DuraSpace. All Rights Reserved.