Package org.w3c.dom

Examples of org.w3c.dom.Element.cloneNode()


                // copy status
                Element configElement = this.getCopletConfiguration(copletID,
                                                      (Map)theProfile.get(PortalConstants.PROFILE_DEFAULT_COPLETS),
                                                      (Map)theProfile.get(PortalConstants.PROFILE_MEDIA_COPLETS));
                Element configStatus = (Element)DOMUtil.getFirstNodeFromPath(configElement, new String[] {"status"}, false);
                copletNode.appendChild(configStatus.cloneNode(true));

                // clear type information for each status
                Element status = (Element)copletNode.getElementsByTagName("status").item(0);
                NodeList parameters = status.getChildNodes();
                Node    current;
View Full Code Here


                   
                    Element encDataElem =
                        WSSecurityUtil.findElementById(
                            document.getDocumentElement(), xencEncryptedDataId, null
                        );
                    Node clone = encDataElem.cloneNode(true);
                    elem.appendChild(clone);
                    encDataElem.getParentNode().appendChild(elem);
                    encDataElem.getParentNode().removeChild(encDataElem);
                } else {
                    xmlCipher.init(XMLCipher.ENCRYPT_MODE, secretKey);
View Full Code Here

                // copy status
                Element configElement = this.getCopletConfiguration(copletID,
                                                      (Map)theProfile.get(PortalConstants.PROFILE_DEFAULT_COPLETS),
                                                      (Map)theProfile.get(PortalConstants.PROFILE_MEDIA_COPLETS));
                Element configStatus = (Element)DOMUtil.getFirstNodeFromPath(configElement, new String[] {"status"}, false);
                copletNode.appendChild(configStatus.cloneNode(true));

                // clear type information for each status
                Element status = (Element)copletNode.getElementsByTagName("status").item(0);
                NodeList parameters = status.getChildNodes();
                Node    current;
View Full Code Here

    }

  public String performTranslation(){
      // Clone the dom so the original xml remains intact
      Element el = document.getDocumentElement();
        el = (Element)el.cloneNode(true);
       
        translate(el.getChildNodes());
        cleanAttributeStrings(el.getChildNodes());
       
        src.setNode(el);
View Full Code Here

        soapOperation = requiresSOAP12 ? SOAP12_OPERATION : SOAP_OPERATION;
    }

    public Definition cloneDefinition(WSDLFactory factory, Definition definition) throws WSDLException {
        Element root = definition.getDocumentationElement();
        root = (Element)root.cloneNode(true);
        WSDLReader reader = factory.newWSDLReader();
        return reader.readWSDL(definition.getDocumentBaseURI(), root);
    }
   
    public Types createTypes(Definition definition) {
View Full Code Here

                  pos).trim() : label;
              String lastName = (pos > 0) ? label.substring(
                  pos + 1, label.length()).trim() : "";

              // Clones the value for correct undo/redo
              elt = (Element) elt.cloneNode(true);

              elt.setAttribute("firstName", firstName);
              elt.setAttribute("lastName", lastName);

              newValue = elt;
View Full Code Here

      if (oVector == null) {
        oVector = new Vector();
        moOtherChildrenVectorsMap.put(sTag, oVector);
      }
     
      oVector.add(oElement.cloneNode(true));
     
      returnValue = true;
    }
    catch (Exception exp) {
      exp.printStackTrace();
View Full Code Here

            {
                oVector = new Vector();
                otherChildrenVectorMap.put(sTag, oVector);
            }

            oVector.add(oElement.cloneNode(true));

            returnValue = true;
        }

        catch (Exception exp)
View Full Code Here

      if (oVector == null) {
        oVector = new Vector();
        moOtherChildrenVectorsMap.put(sTag, oVector);
      }
     
      oVector.add(oElement.cloneNode(true));
     
      returnValue = true;
    }
    catch (Exception exp) {
      exp.printStackTrace();
View Full Code Here

      {
        oVector = new Vector();
        otherChildrenVectorMap.put(sTag, oVector);
      }

      oVector.add(oElement.cloneNode(true));

      returnValue = true;
    }

    catch (Exception exp)
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.