Package com.nutrun.xhtml.validator

Examples of com.nutrun.xhtml.validator.XhtmlValidator


      parser.setFeature(Parser.defaultAttributesFeature, true);
      parser.setContentHandler(x);
      InputSource is = new InputSource(in);
      is.setEncoding("UTF-8");
      parser.parse(is);
      XhtmlValidator validator = new XhtmlValidator();
      xhtml = w.toString();
      bytes = (XHTML_START + xhtml).getBytes("UTF-8");
      in = new ByteArrayInputStream(bytes);
      validator.isValid(in);
      String[] errors = validator.getErrors();
      if (errors.length > 0) {
        System.out.println(">>>>>");
        for (int i = 0; i < errors.length; i++) {
          System.out.println(errors[i]);
        }
View Full Code Here

TOP

Related Classes of com.nutrun.xhtml.validator.XhtmlValidator

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.