org.apache.maven.doxia.util
Class XmlValidator
java.lang.Object
org.apache.maven.doxia.util.XmlValidator
public class XmlValidator
- extends Object
A class to validate xml documents.
- Since:
- 1.1.3
- Version:
- $Id$
Method Summary |
void |
validate(String content)
Validate an XML content with SAX. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlValidator
public XmlValidator(Log log)
- Constructor.
- Parameters:
log
- a logger, not null.
validate
public void validate(String content)
throws ParseException
- Validate an XML content with SAX.
- Parameters:
content
- a not null xml content
- Throws:
ParseException
- if any.
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.