public class XmlValidatorImpl extends Object implements XmlValidator
| Constructor and Description |
|---|
XmlValidatorImpl() |
| 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.
|
public void validate(String xmlContent, URL xmlSchema) throws XmlValidationException
XmlValidatorvalidate in interface XmlValidatorxmlContent - - xml to be validatedxmlSchema - - URL to xml schema, against what should be the xml validXmlValidationException - if there is an error in the xmlpublic boolean isValid(String xmlContent, URL xmlSchema)
XmlValidatorisValid in interface XmlValidatorxmlContent - - xml to be validatedxmlSchema - - URL to xml schema, against what should be the xml validCopyright © 2017 Pivotal Software, Inc.. All rights reserved.