Package org.exoplatform.commons.xml
Class XMLValidator
java.lang.Object
org.exoplatform.commons.xml.XMLValidator
- Version:
- $Revision$
- Author:
- Julien Viet
-
Constructor Summary
ConstructorsConstructorDescriptionXMLValidator(Class clazz, String systemId, String resourcePath) XMLValidator(Class clazz, Map<String, String> systemIdToResourcePath) -
Method Summary
Modifier and TypeMethodDescriptionvalidate(DocumentSource source) Parse and validate the specified resource.
-
Constructor Details
-
XMLValidator
-
XMLValidator
-
-
Method Details
-
validate
Parse and validate the specified resource.- Parameters:
source- the source to validate- Returns:
- the document when it is valid or null
- Throws:
IOException- any IOException thrown by using the provided URLNullPointerException- if the provided URL is null
-