Package org.w3c.dom

Examples of org.w3c.dom.Document.createElement()


        Element newBody = response.createElementNS(SOAP_NAMESPACE,
            SOAPENV_QUALIFIER + ":" + SOAP_BODY);
        Element fault = response.createElementNS(SOAP_NAMESPACE,
            SOAPENV_QUALIFIER + ":" + SOAP_FAULT);
        newBody.appendChild(fault);
        Element faultcode = response.createElement(SOAP_FAULTCODE);
        faultcode.appendChild(response
            .createTextNode("Server.Exception"));
        fault.appendChild(faultcode);
        Element faultstring = response.createElement(SOAP_FAULTSTRING);
        faultstring.appendChild(response.createTextNode(text));
View Full Code Here


        newBody.appendChild(fault);
        Element faultcode = response.createElement(SOAP_FAULTCODE);
        faultcode.appendChild(response
            .createTextNode("Server.Exception"));
        fault.appendChild(faultcode);
        Element faultstring = response.createElement(SOAP_FAULTSTRING);
        faultstring.appendChild(response.createTextNode(text));
        fault.appendChild(faultstring);
        String stackTrace = XException.getExceptionInformation();
        if (stackTrace != null)
        {
View Full Code Here

        faultstring.appendChild(response.createTextNode(text));
        fault.appendChild(faultstring);
        String stackTrace = XException.getExceptionInformation();
        if (stackTrace != null)
        {
          Element detail = response.createElement(SOAP_DETAIL);
          detail.appendChild(response.createTextNode(XException
              .getExceptionInformation()));
          fault.appendChild(detail);
        }
        Node father = oldBody.getParentNode();
View Full Code Here

    /*
     * 1. Creating the root element
     */
    DocumentBuilder builder = getDocumentBuilder(system);
    Document doc = builder.newDocument();
    Element root = doc.createElement(mEncodingSystem);
    doc.appendChild(root);

    /*
     * 2. Getting the interface description
     */
 
View Full Code Here

   */
  public Object execute(String function, Object callData) throws XException
  {
    Document retDocument = XMLHelper.getDocumentBuilder("Default",
        mDestination.getName()).newDocument();
    retDocument.appendChild(retDocument.createElement(mDestination
        .getName()));

    /*
     * Getting an instance of the NamedDBConnection
     */
 
View Full Code Here

    }

    Document doc = XMLHelper.getDocumentBuilder("Default", null)
        .newDocument();

    Element root = doc.createElement(mSystem);
    doc.appendChild(root);

    Element emailElement = null;
    Text emailNode = null;
View Full Code Here

      }
    }

    if (mSentDate != null)
    {
      emailElement = doc.createElement("SentDate");
      emailNode = doc.createTextNode(Constants.getDateFormat().format(
          mSentDate));
      emailElement.appendChild(emailNode);
      root.appendChild(emailElement);
    }
View Full Code Here

      root.appendChild(emailElement);
    }

    if (mContentType != null)
    {
      emailElement = doc.createElement("ContentType");
      emailNode = doc.createTextNode(mContentType);
      emailElement.appendChild(emailNode);
      root.appendChild(emailElement);
    }
View Full Code Here

      root.appendChild(emailElement);
    }

    if (mSubject != null)
    {
      emailElement = doc.createElement("Subject");
      emailNode = doc.createTextNode(mSubject);
      emailElement.appendChild(emailNode);
      root.appendChild(emailElement);
    }
View Full Code Here

      root.appendChild(emailElement);
    }

    if (mContent != null && !mContent.trim().equals(""))
    {
      emailElement = doc.createElement("Content");
      emailNode = doc.createTextNode(mContent);
      emailElement.appendChild(emailNode);
      root.appendChild(emailElement);

      emailElement = doc.createElement("IsHTMLMessage");
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.