Examples of XML


Examples of com.caucho.xml.Xml

      DOMBuilder builder = new DOMBuilder();

      builder.init(doc);

      Xml xml = new Xml();
      xml.setOwner(doc);
      xml.setNamespaceAware(false);
      xml.setContentHandler(builder);
      xml.setCoalescing(true);

      if (deploymentPlan != null)
        xml.parse(Vfs.lookup(deploymentPlan.getAbsolutePath()));
      else
        xml.parse(deploymentPlanStream);

      String type = XPath.evalString("/deployment-plan/archive-type", doc);
      String name = XPath.evalString("/deployment-plan/name", doc);

      CommitBuilder commit = new CommitBuilder();
View Full Code Here

Examples of com.caucho.xml.Xml

    try {
      ParseState parseState = _gen.getParseState();
     
      if (parseState.isXml()) {
        Xml xml = new Xml();
        xml.setContentHandler(new JspContentHandler(parseState.getBuilder()));
        Path path = resolvePath(_file, parseState);

        path.setUserPath(_file);
        xml.setNamespaceAware(true);

        for (Namespace ns = parseState.getNamespaces();
             ns != null;
             ns = ns.getNext()) {
          xml.pushNamespace(ns.getPrefix(), ns.getURI());
        }

        xml.parse(path);
      }
      else
        _gen.getJspParser().pushInclude(_file);
    } catch (SAXException e) {
      throw error(e);
View Full Code Here

Examples of com.caucho.xml.Xml

    ReadStream is = _sourcePath.openRead();
    try {
      XmlParser parser;
     
      if (_strictXml) {
        parser = new Xml();
        parser.setEntitiesAsText(_entitiesAsText);
      }
      else {
        parser = new Html();
        parser.setAutodetectXml(true);
View Full Code Here

Examples of com.caucho.xml.Xml

    /**
     * Creates a new document builder.
     */
    XmlDocumentBuilder()
    {
      _parser = new Xml();
      _parser.setConfig(XmlDocumentBuilderFactory.this);
    }
View Full Code Here

Examples of com.caucho.xml.Xml

    try {
      if (_isHtml)
        doc = new LooseHtml().parseDocument(path);
      else
        doc = new Xml().parseDocument(path);
    } catch (Exception e) {
      log.log(Level.FINE, e.toString(), e);
     
      //XXX:throw new XPathException(e);
    }
View Full Code Here

Examples of com.caucho.xml.Xml

public class XmlEcmaWrap {
  public static Document parse(InputStream is)
    throws IOException, SAXException
  {
    if (is instanceof ReadStream)
      return new Xml().parseDocument((ReadStream) is);
    else
      return new Xml().parseDocument(is);
  }
View Full Code Here

Examples of com.caucho.xml.Xml

  }
 
  public static Document parse(InputSource is)
    throws IOException, SAXException
  {
    return new Xml().parseDocument(is);
  }
View Full Code Here

Examples of com.caucho.xml.Xml

  }
 
  public static Document parseString(String s)
    throws IOException, SAXException
  {
    return new Xml().parseDocument(StringStream.open(s));
  }
View Full Code Here

Examples of com.caucho.xml.Xml

  }
 
  public static Document parseFile(Path path)
    throws IOException, SAXException
  {
    return new Xml().parseDocument(path);
  }
View Full Code Here

Examples of com.caucho.xml.Xml

      if (isXml) {
        if (_parseState.getELIgnoredDefault() == null)
          _parseState.setELIgnoredDefault(false);

        Xml xml = new Xml();
        _parseState.setXml(xml);
        xml.setContentHandler(new JspContentHandler(_jspBuilder));
        _jspPath.setUserPath(_uri);
        xml.setNamespaceAware(true);
        xml.setDtdValidating(true);
        xml.parse(_jspPath);
      }
      else {
        WebApp app = _jspCompiler.getWebApp();

        // jsp/0135
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.