Package org.jdom.transform

Examples of org.jdom.transform.JDOMResult$DocumentBuilder


     * @return
     * @throws Exception
     */
  public static Element transform(Element xml, String styleSheetPath, Map<String, Object> params) throws Exception
  {
    JDOMResult resXml = new JDOMResult();
    transform(xml, styleSheetPath, resXml, params);
    return (Element)resXml.getDocument().getRootElement().detach();
  }
View Full Code Here


  }


    public static Element transformWithXmlParam(Element xml, String styleSheetPath, String xmlParamName, String xmlParam) throws Exception
    {
        JDOMResult resXml = new JDOMResult();

        File styleSheet = new File(styleSheetPath);
        Source srcSheet = new StreamSource(styleSheet);
        transformWithXmlParam(xml, srcSheet, resXml, xmlParamName, xmlParam);

        return (Element)resXml.getDocument().getRootElement().detach();
    }
View Full Code Here

   * @return a {@link Document} object.
   */
  @Nonnull
  public static Document toJDom( @Nonnull org.w3c.dom.Document document ) {
    try {
      JDOMResult target = new JDOMResult();
      TransformerFactory.newInstance().newTransformer().transform( new DOMSource( document ), target );
      return target.getDocument();
    } catch ( TransformerException e ) {
      throw new RuntimeException( e );
    }
  }
View Full Code Here

   * @return a {@link Document} object.
   */
  @NotNull
  public static Document toJDom( @NotNull org.w3c.dom.Document document ) {
    try {
      JDOMResult target = new JDOMResult();
      TransformerFactory.newInstance().newTransformer().transform( new DOMSource( document ), target );
      return target.getDocument();
    } catch ( TransformerException e ) {
      throw new RuntimeException( e );
    }
  }
View Full Code Here

      // Convert the SOAP response into a JDOM
      TransformerFactory tFact = TransformerFactory.newInstance();
      Transformer transformer = tFact.newTransformer();

      JDOMResult jdomResult = new JDOMResult();
      transformer.transform(responseContent, jdomResult);

      // Get the document created by the transform operation
      Document responseDoc = jdomResult.getDocument();

      // Send the response to the Log
      String strResponse = XMLSupport.outputString(responseDoc);
      log.debug("SOAP Response from: " + operation.getTargetMethodName() + ": " + strResponse);
View Full Code Here

      // Convert the SOAP response into a JDOM
      TransformerFactory tFact = TransformerFactory.newInstance();
      Transformer transformer = tFact.newTransformer();

      JDOMResult jdomResult = new JDOMResult();
      transformer.transform(responseContent, jdomResult);

      // Get the document created by the transform operation
      Document responseDoc = jdomResult.getDocument();

      // Send the response to the Log
      String strResponse = XMLSupport.outputString(responseDoc);
      log.debug("SOAP Response from: " + operation.getTargetMethodName() + ": " + strResponse);
View Full Code Here

   * @return a {@link Document} object.
   */
  @NotNull
  public static Document toJDom( @NotNull org.w3c.dom.Document document ) {
    try {
      JDOMResult target = new JDOMResult();
      TransformerFactory.newInstance().newTransformer().transform( new DOMSource( document ), target );
      return target.getDocument();
    } catch ( TransformerException e ) {
      throw new RuntimeException( e );
    }
  }
View Full Code Here

  }

  @NotNull
  public static Document toJDom( @NotNull org.w3c.dom.Document document ) {
    try {
      JDOMResult target = new JDOMResult();
      TransformerFactory.newInstance().newTransformer().transform( new DOMSource( document ), target );
      return target.getDocument();
    } catch ( TransformerException e ) {
      throw new RuntimeException( e );
    }
  }
View Full Code Here

  }

  @NotNull
  public static Document toJDom( @NotNull org.w3c.dom.Document document ) {
    try {
      JDOMResult target = new JDOMResult();
      TransformerFactory.newInstance().newTransformer().transform( new DOMSource( document ), target );
      return target.getDocument();
    } catch ( TransformerException e ) {
      throw new RuntimeException( e );
    }
  }
View Full Code Here

  }

  @NotNull
  public static Document toJDom( @NotNull org.w3c.dom.Document document ) {
    try {
      JDOMResult target = new JDOMResult();
      TransformerFactory.newInstance().newTransformer().transform( new DOMSource( document ), target );
      return target.getDocument();
    } catch ( TransformerException e ) {
      throw new RuntimeException( e );
    }
  }
View Full Code Here

TOP

Related Classes of org.jdom.transform.JDOMResult$DocumentBuilder

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.