org.apache.maven.doxia.util
Class XmlValidator

java.lang.Object
  extended by org.apache.maven.doxia.util.XmlValidator

public class XmlValidator
extends Object

A class to validate xml documents.

Since:
1.1.3
Version:
$Id$

Constructor Summary
XmlValidator(Log log)
          Constructor.
 
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
 

Constructor Detail

XmlValidator

public XmlValidator(Log log)
Constructor.

Parameters:
log - a logger, not null.
Method Detail

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.