Package org.w3c.dom

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


                        if (resp.getNodeName().contains("pingResponse")) {
                            Node child = resp.getFirstChild();
                            Document doc = resp.getOwnerDocument();
                            Node info = doc.createElementNS(child.getNamespaceURI(), child.getLocalName());
                            info.setPrefix("ns4");
                            info.appendChild(doc.createTextNode(getHandlerId()));
                            resp.appendChild(info);
                            msg.saveChanges();
                        }
                    } catch (DOMException e) {
                        e.printStackTrace();
View Full Code Here


                        // Ignore this handlers information as it will be added again later.
                        //
                        if (!info.contains(getHandlerId())) {
                            Node newEl = doc.createElementNS(namespace, "HandlersInfo");
                            newEl.setPrefix("ns4");
                            newEl.appendChild(doc.createTextNode(info));
                            wrapper.appendChild(newEl);
                        }
                    }
                    ret = false;
                } else if ("throw".equals(command)) {
View Full Code Here

            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));
        fault.appendChild(faultstring);
View Full Code Here

        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)
        {
          Element detail = response.createElement(SOAP_DETAIL);
View Full Code Here

        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();
        father.replaceChild(newBody, oldBody);
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

    }

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

    if (mSubject != null)
View Full Code Here

    }

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

    if (mContent != null && !mContent.trim().equals(""))
View Full Code Here

    }

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

      emailElement = doc.createElement("IsHTMLMessage");
      if (isHTMLMessage())
View Full Code Here

      root.appendChild(emailElement);

      emailElement = doc.createElement("IsHTMLMessage");
      if (isHTMLMessage())
      {
        emailNode = doc.createTextNode("true");
      }
      else
      {
        emailNode = doc.createTextNode("false");
      }
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.