org.apache.lenya.xml
Class ValidationUtil

java.lang.Object
  extended by org.apache.lenya.xml.ValidationUtil

public class ValidationUtil
extends java.lang.Object

Validation utility.


Constructor Summary
ValidationUtil()
           
 
Method Summary
static void validate(org.apache.avalon.framework.service.ServiceManager manager, Document document, org.xml.sax.ErrorHandler handler)
           
static void validate(org.apache.avalon.framework.service.ServiceManager manager, org.w3c.dom.Document xmlDoc, Schema schema, org.xml.sax.ErrorHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationUtil

public ValidationUtil()
Method Detail

validate

public static void validate(org.apache.avalon.framework.service.ServiceManager manager,
                            Document document,
                            org.xml.sax.ErrorHandler handler)
                     throws java.lang.Exception
Parameters:
manager - The service manager.
document - The document to validate.
handler - The SAX error handler.
Throws:
java.lang.Exception - if an error occurs.

validate

public static void validate(org.apache.avalon.framework.service.ServiceManager manager,
                            org.w3c.dom.Document xmlDoc,
                            Schema schema,
                            org.xml.sax.ErrorHandler handler)
                     throws java.lang.Exception
Parameters:
manager - The service manager.
xmlDoc - The XML document.
schema - The schema to use.
handler - The SAX error handler.
Throws:
java.lang.Exception - if an error occurs.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.