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 class
Convenience class to beautifySAXParseException
messages. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setDefaultHandler
(DefaultHandler defaultHandler) void
setEntityResolver
(EntityResolver entityResolver) void
setValidate
(boolean validate) void
Validate 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
-