Package org.dom4j.io

Examples of org.dom4j.io.DOMReader


      server.generateWSDL( msgContext );       
       
      // another one of those undocumented "features"
      Document doc = (Document) msgContext.getProperty( "WSDL" );
       
        DOMReader xmlReader = new DOMReader();
        return xmlReader.read(doc);
    }
View Full Code Here


    protected Element resolveRequestPayloadArgument(MethodParameter parameter, Source requestPayload)
            throws TransformerException {
        if (requestPayload instanceof DOMSource) {
            org.w3c.dom.Node node = ((DOMSource) requestPayload).getNode();
            if (node.getNodeType() == org.w3c.dom.Node.DOCUMENT_NODE) {
                DOMReader domReader = new DOMReader();
                Document document = domReader.read((org.w3c.dom.Document) node);
                return document.getRootElement();
            }
        }
        // we have no other option than to transform
        DocumentResult dom4jResult = new DocumentResult();
View Full Code Here

            return null;
        }
        if (!alwaysTransform && source instanceof DOMSource) {
            Node node = ((DOMSource) source).getNode();
            if (node.getNodeType() == Node.DOCUMENT_NODE) {
                DOMReader domReader = new DOMReader();
                Document document = domReader.read((org.w3c.dom.Document) node);
                return document.getRootElement();
            }
        }
        // we have no other option than to transform
        DocumentResult dom4jResult = new DocumentResult();
View Full Code Here

  /**
   * Create a dom4j DOMReader
   */
  public DOMReader createDOMReader() {
    if (domReader==null) domReader = new DOMReader();
    return domReader;
  }
View Full Code Here

  /**
   * Create a dom4j DOMReader
   */
  public DOMReader createDOMReader() {
    if (domReader==null) domReader = new DOMReader();
    return domReader;
  }
View Full Code Here

  /**
   * Create a dom4j DOMReader
   */
  public DOMReader createDOMReader() {
    if (domReader==null) domReader = new DOMReader();
    return domReader;
  }
View Full Code Here

  /**
   * @return create and return a dom4j DOMReader
   */
  public DOMReader createDOMReader() {
    if ( domReader == null ) {
      domReader = new DOMReader();
    }
    return domReader;
  }
View Full Code Here

              "res://org/pentaho/reporting/designer/core/editor/drilldown/basic/basic-drilldown.xul"); // NON-NLS

      final ResourceManager resourceManager = new ResourceManager();
      final Resource resource = resourceManager.createDirectly(xulDocument, Document.class);
      final Document document = (Document) resource.getResource();
      final DOMReader domReader = new DOMReader();
      final XulDomContainer container = loader.loadXulFragment(domReader.read(document));


      // Create our main Controller
      final String className = configuration.getConfigProperty
          ("org.pentaho.reporting.designer.core.editor.drilldown.xul-controller." + configurationTag, // NON-NLS
View Full Code Here

        HudsonTestCase.WebClient jnlpAgent = new WebClient();

        // parse the JNLP page into DOM to list up the jars.
        XmlPage jnlp = (XmlPage) wc.goTo("computer/test/slave-agent.jnlp","application/x-java-jnlp-file");
        URL baseUrl = jnlp.getWebResponse().getUrl();
        Document dom = new DOMReader().read(jnlp.getXmlDocument());
        for( Element jar : (List<Element>)dom.selectNodes("//jar") ) {
            URL url = new URL(baseUrl,jar.attributeValue("href"));
            System.out.println(url);
           
            // now make sure that these URLs are unprotected
View Full Code Here

  /**
   * Create a dom4j DOMReader
   */
  public DOMReader createDOMReader() {
    if (domReader==null) domReader = new DOMReader();
    return domReader;
  }
View Full Code Here

TOP

Related Classes of org.dom4j.io.DOMReader

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.