Examples of importNode()


Examples of javax.xml.soap.SOAPPart.importNode()

    private Document testImportFromDomToSaaj(Document doc) throws Exception {
        SOAPMessage sm = MessageFactory.newInstance().createMessage();
        SOAPPart sp = sm.getSOAPPart();
        SOAPBody body = sm.getSOAPBody();
        org.w3c.dom.Node node = sp.importNode(doc.getDocumentElement(), true);
        body.appendChild(node);
        return sp;
    }
}
View Full Code Here

Examples of org.apache.batik.dom.svg.SVGOMDocument.importNode()

            theCtx = subCtx;
        }
           
        // import or clone the referenced element in current document
        Element localRefElement;
        localRefElement = (Element)document.importNode(refElement, true, true);

        if (SVG_SYMBOL_TAG.equals(localRefElement.getLocalName())) {
            // The referenced 'symbol' and its contents are deep-cloned into
            // the generated tree, with the exception that the 'symbol'  is
            // replaced by an 'svg'.
View Full Code Here

Examples of org.apache.flex.forks.batik.dom.svg.SVGOMDocument.importNode()

            theCtx = subCtx;
        }
           
        // import or clone the referenced element in current document
        Element localRefElement;
        localRefElement = (Element)document.importNode(refElement, true, true);

        if (SVG_SYMBOL_TAG.equals(localRefElement.getLocalName())) {
            // The referenced 'symbol' and its contents are deep-cloned into
            // the generated tree, with the exception that the 'symbol'  is
            // replaced by an 'svg'.
View Full Code Here

Examples of org.apache.xerces.dom.DocumentImpl.importNode()

        }
    }

    public static Document newDocument(Node firstElement, boolean deepcopy) {
        Document newDoc = new DocumentImpl();
        newDoc.appendChild(newDoc.importNode(firstElement, deepcopy));
        return newDoc;
    }


    //////////////////////////////////////////////////////////////////////////
View Full Code Here

Examples of org.apache.xindice.xml.dom.DocumentImpl.importNode()

         if ( n instanceof DBNode ) {
            ( ( DBNode ) n ).expandSource();
         }

         root.appendChild( doc.importNode( n, true ) );
         count++;
      }

      root.setAttribute( "count", Integer.toString( count ) );
View Full Code Here

Examples of org.apache.xindice.xml.dom.DocumentImpl.importNode()

               NodeSource.SOURCE_NS, "key");

            if ( bytes != null ) {
               DocumentImpl doc = new DocumentImpl();
               doc.setSymbols(symbols);
               doc.importNode(n, true);
               doc.appendChild(n);
               byte[] b = DOMCompressor.Compress(doc, symbols);
               resource = new XMLResourceImpl(null, documentId, collection,
                  symbols, b);
            }
View Full Code Here

Examples of org.apache.xindice.xml.dom.DocumentImpl.importNode()

         Element resource = doc.createElementNS(RESOURCE_SET_NS,
            "xapi:resource");
         resource.setAttributeNS(RESOURCE_SET_NS, "xapi:documentID",
            res.getDocumentId());

         resource.appendChild(doc.importNode(
            ((Document) res.getContentAsDOM()).getDocumentElement(), true));

         set.appendChild(resource);

         i++;
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument.importNode()

      originalDocument = modelForRead.getDocument();

      DOMModelImpl copiedModel = (DOMModelImpl) modelManager.createNewInstance(modelForRead);
      IDOMDocument copiedDocument = copiedModel.getDocument();

      newBean = (IDOMElement) copiedDocument.importNode(existingNode, true);
    }
    catch (IOException e) {
      StatusHandler.log(new Status(IStatus.ERROR, WizardPlugin.PLUGIN_ID, "Failed to create bean node.", e));
    }
    catch (CoreException e) {
View Full Code Here

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

                } else if (nl.item(i) instanceof Text) {
                    targetElem = ((Text) nl.item(i)).getWholeText();
                } else {
                    DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                    Document doc = builder.newDocument();
                    targetElem  = doc.importNode(nl.item(i), true);
                }
                target = targetElem;
            } else {
                org.w3c.dom.Node n  = ((org.w3c.dom.Node) targetElem).getOwnerDocument().importNode(nl.item(i), true);
                if (n instanceof Attr) {
View Full Code Here

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

      try {
         Node tempNode = SvgUtility.createDocument(completeSVG, "file://dummy.svg").getDocumentElement().getFirstChild();

         Document doc = el.getOwnerDocument();
         tempNode = doc.importNode(tempNode, true);

         Node parentNode = el.getParentNode();
         parentNode.replaceChild(tempNode, el);

         GraphicsNode graphicsNode = this.bridgeContext.getGVTBuilder().build(this.bridgeContext, (Element)tempNode);
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.