Interface IXmlValidator
-
- All Known Implementing Classes:
XmlXsdValidator
public interface IXmlValidator
This interface describes the methods that can be used to validate an xml.- Since:
- 6.4
- Author:
- Jon van Leuven
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
validate(IResource xml)
Validate an xml resource.void
validate(String doc)
Validate an xml string.
-
-
-
Method Detail
-
validate
void validate(IResource xml) throws XmlValidationException
Validate an xml resource.- Parameters:
xml
- The xml resource.- Throws:
XmlValidationException
- Is thrown when the provided xml does not validate.
-
validate
void validate(String doc) throws XmlValidationException
Validate an xml string.- Parameters:
doc
- The xml string.- Throws:
XmlValidationException
- Is thrown when the provided xml does not validate.
-
-