Class XmlValidator


  • public class XmlValidator
    extends java.lang.Object
    A class to validate xml documents.
    Since:
    1.1.3
    Version:
    $Id$
    • Constructor Summary

      Constructors 
      Constructor Description
      XmlValidator​(Log log)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void validate​(java.lang.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​(java.lang.String content)
                      throws ParseException
        Validate an XML content with SAX.
        Parameters:
        content - a not null xml content
        Throws:
        ParseException - if any.