Package ch.inftec.ju.util

Examples of ch.inftec.ju.util.JuException


     */
    public static void validate(String xml, Schema schema, boolean nameSpaceAware) throws JuException {
      try {
        schema.newValidator().validate(new DOMSource(XmlUtils.loadXml(xml, null, nameSpaceAware)));
      } catch (SAXParseException ex) {
        throw new JuException("Parse exception: " + ex.getMessage(), ex);
      } catch (Exception ex) {
        throw new JuException("Validation failed", ex);
      }
    }
View Full Code Here

TOP

Related Classes of ch.inftec.ju.util.JuException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.