Package org.apache.maven.doxia.util
Class XmlValidator
java.lang.Object
org.apache.maven.doxia.util.XmlValidator
A class to validate xml documents.
- Since:
- 1.1.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConvenience class to beautifySAXParseExceptionmessages. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetDefaultHandler(DefaultHandler defaultHandler) voidsetEntityResolver(EntityResolver entityResolver) voidsetValidate(boolean validate) voidValidate an XML content with SAX.
-
Constructor Details
-
XmlValidator
public XmlValidator()
-
-
Method Details
-
isValidate
public boolean isValidate() -
setValidate
public void setValidate(boolean validate) -
getDefaultHandler
-
setDefaultHandler
-
getEntityResolver
-
setEntityResolver
-
validate
Validate an XML content with SAX.- Parameters:
content- a not null xml content- Throws:
ParseException- if any.
-
getXmlReader
- Returns:
- an xmlReader instance.
- Throws:
SAXException- if anyParserConfigurationException
-