Examples of createElementNS()


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

                        Node resp = body.getFirstChild();

                        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();
                        }
View Full Code Here

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

                    // remove the incoming request body.
                    Document doc = body.getOwnerDocument();
                    // build the SOAP response for this message
                    //
                    Node wrapper = doc.createElementNS(namespace, "pingResponse");
                    wrapper.setPrefix("ns4");
                    body.removeChild(body.getFirstChild());
                    body.appendChild(wrapper);

                    for (String info : getHandlerInfoList(ctx)) {
View Full Code Here

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

                    for (String info : getHandlerInfoList(ctx)) {
                        // copy the the previously invoked handler list into the response. 
                        // 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);
                        }
                    }
View Full Code Here

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

        Document response = getTemplateAsDocument();
        setResponseDocument(response, null);

        Node oldBody = getBody(response);

        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);
View Full Code Here

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

        Node oldBody = getBody(response);

        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"));
View Full Code Here

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

    // the element may be defined locally or globally
    element def = getDefinition(ctx.getModel(),ctx);
    schema xs = (schema) def.get_owner();

    if (isQualified()) {
      e = doc.createElementNS(xs.getTargetNamespace(), def.getName());
      // if the default ns is undefined use this tns (unprefixed)
      // (this element may already be in the default namespace)
      String dns = expandPrefix("", xml,null,ctx.getModel());
      // use prefixes where there may be unqualified elements and this is qualified
      if ((dns==null && (xs.getElementFormDefault().equals("unqualified")))
View Full Code Here

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

        try {
            resultDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
        } catch (Exception ex) {
            LOG.log(Level.SEVERE, "FAIL_CREATE_DOM_MSG");
        }
        Element commandEl = resultDoc.createElementNS("http://www.xsume.com/Xutil/Command", "command");

        // resultDoc.createAttributeNS("http://www.w3.org/2001/XMLSchema-instance","schemaLocation");
        commandEl.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:schemaLocation",
                                 "http://www.xsume.com/Xutil/Command http://www.xsume.com/schema/xutil/c"
                                     + "ommand.xsd");
View Full Code Here

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

            lDoc = db.newDocument();
          }
       
          Element element = null;
          if (object instanceof XNumber)
            element = lDoc.createElementNS(EXSL_URI, "exsl:number");
          else if (object instanceof XBoolean)
            element = lDoc.createElementNS(EXSL_URI, "exsl:boolean");
          else
            element = lDoc.createElementNS(EXSL_URI, "exsl:string");
         
View Full Code Here

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

       
          Element element = null;
          if (object instanceof XNumber)
            element = lDoc.createElementNS(EXSL_URI, "exsl:number");
          else if (object instanceof XBoolean)
            element = lDoc.createElementNS(EXSL_URI, "exsl:boolean");
          else
            element = lDoc.createElementNS(EXSL_URI, "exsl:string");
         
          Text textNode = lDoc.createTextNode(object.str());
          element.appendChild(textNode);
View Full Code Here

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

          if (object instanceof XNumber)
            element = lDoc.createElementNS(EXSL_URI, "exsl:number");
          else if (object instanceof XBoolean)
            element = lDoc.createElementNS(EXSL_URI, "exsl:boolean");
          else
            element = lDoc.createElementNS(EXSL_URI, "exsl:string");
         
          Text textNode = lDoc.createTextNode(object.str());
          element.appendChild(textNode);
          resultSet.addNode(element);
        }
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.