Examples of importNode()


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

                || inclusion == SPConstants.INCLUDE_TOKEN_ONCE)
                && rmd.isInitiator())) {
         
            //Add the token
            rmd.getSecHeader().getSecurityHeader().appendChild(
                  doc.importNode((Element) tok.getToken(), true));
         
            tokenIncluded = true;
        }

        Vector sigParts = new Vector();
View Full Code Here

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

                  ref = tok.getUnattachedReference();
              }
             
              if(ref != null) {
                  dkSign.setExternalKey(tok.getSecret(), (Element)
                          doc.importNode((Element) ref, true));
              } else {
                  dkSign.setExternalKey(tok.getSecret(), tok.getId());
              }
             
              //Set the algo info
View Full Code Here

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

        addressNode.setNodeValue(servicePoint + currentValue);
      }

      Node featureTypeListNode = document.getElementsByTagName("FeatureTypeList").item(0);
      //System.out.println("test" + this.featureNodesDocument.getDocumentElement());
      Node importedNode = document.importNode(this.featureNodesDocument.getDocumentElement(), true);
      NodeList importedFeatureTypeNodes = importedNode.getChildNodes();
      for (int i = 0; i < importedFeatureTypeNodes.getLength(); i++){
        featureTypeListNode.appendChild(importedFeatureTypeNodes.item(i));
      }
     
View Full Code Here

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

            if ( lznText == null )
                return null;
            return XMLUtil.readDocumentFrom( lznText );
        }
        final Document lznDoc = XMLUtil.createDocument();
        lznDoc.appendChild( lznDoc.importNode( child, true ) );
        return lznDoc;
    }

    /**
     * Gets the <code>rdf:RDF</code> element of an XMP packet document.
View Full Code Here

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

            }
            return;
        }

        final Document oldDocument = oldRDFElement.getOwnerDocument();
        newRDFDirElement = oldDocument.importNode( newRDFDirElement, true );

        //
        // See if the existing metadata has metadata for the directory we're
        // doing: if so, replace it; if not, append it.
        //
View Full Code Here

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

            } else {
                Document doc = createDocument();
                // import node must not occur concurrent on the same node (must be its owner)
                // so we need to synchronize on it
                synchronized (node.getOwnerDocument()) {
                    doc.appendChild(doc.importNode(node, true));
                }
                return doc;
            }
            // other element types are not handled
        } else {
View Full Code Here

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

                        if   ( jstlNodeList.getLength() == 1 ) {
                            if ( Class.forName("org.w3c.dom.Node").isInstance(
                                jstlNodeList.elementAt(0) ) ) {
                                Node node = (Node)jstlNodeList.elementAt(0);
                                Document doc = getDummyDocumentWithoutRoot();
                                Node importedNode = doc.importNode( node, true);
                                doc.appendChild (importedNode );
                                boundDocument = doc;
                                if ( whetherOrigXPath ) {
                                    xpath="/*" + xpath;
                                }
View Full Code Here

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

            } else {
                Document doc = createDocument();
                // import node must not occur concurrent on the same node (must be its owner)
                // so we need to synchronize on it
                synchronized (node.getOwnerDocument()) {
                    doc.appendChild(doc.importNode(node, true));
                }
                return doc;
            }
            // other element types are not handled
        } else {
View Full Code Here

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

                    // now we have an element
                    // copy all children of this element in the resulting tree
                    NodeList childs = list.item(i).getChildNodes();
                    if (childs != null) {
                        for(int m = 0; m < childs.getLength(); m++) {
                            result.appendChild(doc.importNode(childs.item(m), true));
                        }
                    }
                }
            }
        }
View Full Code Here

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

                // this is a fast test, if the parameter value contains xml!
                parValue = values[i].trim();
                if (parValue.length() > 0 && parValue.charAt(0) == '<') {
                    try {
                        valueNode = DOMUtil.getDocumentFragment(parser, new StringReader(parValue));
                        valueNode = doc.importNode(valueNode, true);
                    } catch (Exception noXMLException) {
                        valueNode = doc.createTextNode(parValue);
                    }
                } else {
                    valueNode = doc.createTextNode(parValue);
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.