public interface XmlValidator
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(String xmlContent,
URL xmlSchema)
Check, if xml is valid against the schema.
|
void |
validate(String xmlContent,
URL xmlSchema)
Validate xml against the schema.
|
void validate(String xmlContent, URL xmlSchema) throws XmlValidationException
xmlContent
- - xml to be validatedxmlSchema
- - URL to xml schema, against what should be the xml validIllegalArgumentException
- if any argument is null or xml schema is invalidXmlValidationException
- if there is an error in the xmlboolean isValid(String xmlContent, URL xmlSchema)
xmlContent
- - xml to be validatedxmlSchema
- - URL to xml schema, against what should be the xml validIllegalArgumentException
- if any argument is null or xml schema is invalidCopyright © 2017 Pivotal Software, Inc.. All rights reserved.