Examples of parseDocument()


Examples of com.caucho.xml.Html.parseDocument()

          if (isStrict)
            doc = new Xml().parseDocument(is);
          else {
            XmlParser parser = new Html();
            parser.setEntitiesAsText(true);
            doc = parser.parseDocument(is);
          }
        } finally {
          is.close();
        }
View Full Code Here

Examples of com.caucho.xml.LooseXml.parseDocument()

    log.config(L.l("resin:include '{0}'.\nresin:include is deprecated.  Please use resin:import instead.", _path.getNativePath()));


    LooseXml xml = new LooseXml();

    Document doc = xml.parseDocument(_path);

    new Config().configure(object, doc); // , schema);
  }
}
View Full Code Here

Examples of com.caucho.xml.Xml.parseDocument()

    throws TransformerConfigurationException
  {
    try {
      Xml parser = new Xml();

      return parser.parseDocument(rs);
    } catch (Exception e) {
      throw new XslParseException(e);
    }
  }
View Full Code Here

Examples of com.caucho.xml.Xml.parseDocument()

      InputSource is = new InputSource(reader);

      XmlParser parser = new Xml();

      Document doc = parser.parseDocument(is);

      reader.close();

      if (_var != null)
        CoreSetTag.setValue(pageContext, _var, _scope, doc);
View Full Code Here

Examples of com.caucho.xml.XmlParser.parseDocument()

          if (isStrict)
            doc = new Xml().parseDocument(is);
          else {
            XmlParser parser = new Html();
            parser.setEntitiesAsText(true);
            doc = parser.parseDocument(is);
          }
        } finally {
          is.close();
        }
View Full Code Here

Examples of com.caucho.xml.XmlParser.parseDocument()

      InputSource is = new InputSource(reader);

      XmlParser parser = new Xml();

      Document doc = parser.parseDocument(is);

      reader.close();

      if (_var != null)
        CoreSetTag.setValue(pageContext, _var, _scope, doc);
View Full Code Here

Examples of com.caucho.xml.XmlParser.parseDocument()

      }

      parser.setResinInclude(true);
      parser.setJsp(true);

      return (CauchoDocument) parser.parseDocument(is);
    } catch (Exception e) {
      JspParseException jspE = JspParseException.create(e);
     
      jspE.setErrorPage(_errorPage);
     
View Full Code Here

Examples of com.dtolabs.rundeck.core.resources.format.ResourceFormatParser.parseDocument()

            }
            logger.debug("Determined URL content format from MIME type: " + mimetype);
        }
        if (destinationTempFile.isFile() && destinationTempFile.length() > 0) {
            try {
                return parser.parseDocument(destinationTempFile);
            } catch (ResourceFormatParserException e) {
                throw new ResourceModelSourceException(
                    "Error requesting URL Resource Model Source: " + configuration.nodesUrl
                    + ": Content could not be parsed: "+e.getMessage(),e);
            }
View Full Code Here

Examples of com.google.caja.parser.css.CssParser.parseDocument()

      input = p.parseStyleSheet();
      tq.expectEmpty();
    } else if (ContentType.HTML == type) {
      DomParser p = new DomParser(new HtmlLexer(cp), false, is, mq);
      //if (p.getTokenQueue().isEmpty()) { return null; }
      input = Dom.transplant(p.parseDocument());
      p.getTokenQueue().expectEmpty();
    } else {
      throw new SomethingWidgyHappenedError("Can't classify input " + is);
    }
    return input;
View Full Code Here

Examples of com.google.caja.parser.html.DomParser.parseDocument()

    HtmlLexer lexer = new HtmlLexer(cp);
    lexer.setTreatedAsXml(asXml);
    TokenQueue<HtmlTokenType> tq = new TokenQueue<HtmlTokenType>(
        lexer, is, DomParser.SKIP_COMMENTS);
    DomParser p = new DomParser(tq, asXml, mq);
    Node t = asDoc ? p.parseDocument() : p.parseFragment();
    tq.expectEmpty();
    return t;
  }

  protected Element markup(CharProducer cp) throws ParseException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.