Examples of appendChild()


Examples of org.apache.xalan.templates.ElemTemplateElement.appendChild()

    charProcessor.setXslTextElement((ElemText) elem);

    ElemTemplateElement parent = handler.getElemTemplateElement();

    parent.appendChild(elem);
    elem.setDOMBackPointer(handler.getOriginatingNode());
  }

  /**
   * Receive notification of the end of an element.
View Full Code Here

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

       
        // Convert the Node elements to an XML DOM representation
        Document tempDocument = new DocumentImpl();
        Element tempRootElement = tempDocument.createElement("GISToolkit");     // Create Root Element
        addNode(tempDocument, tempRootElement, tempRootNode);
        tempDocument.appendChild(tempRootElement);
       
        // write the XML Document
        File tempFile = new File(inFileName);
        OutputFormat    format  = new OutputFormat( tempDocument );   //Serialize DOM
        format.setIndenting(true);
View Full Code Here

Examples of org.apache.xerces.dom.EntityImpl.appendChild()

                    entity.setReadOnly(false, false);
                    for (Node child = erNode.getFirstChild();
                         child != null;
                         child = child.getNextSibling()) {
                        Node childClone = child.cloneNode(true);
                        entity.appendChild(childClone);
                    }
                    entity.setReadOnly(true, true);
                }
            } catch (Exception e) {
                // we aren't building against Xerces - do nothing
View Full Code Here

Examples of org.apache.xerces.dom.NodeImpl.appendChild()

                    if (entity != null && entity.getFirstChild() == null) {
                        entity.setReadOnly(false, true);
                        Node child = fCurrentNode.getFirstChild();
                        while (child != null) {
                            Node copy = child.cloneNode(true);
                            entity.appendChild(copy);
                            child = child.getNextSibling();
                        }
                        entity.setReadOnly(true, true);
                        entities.setNamedItem(entity);
                    }
View Full Code Here

Examples of org.apache.xerces.dom.PSVIDocumentImpl.appendChild()

                                                          attributes.getQName(attrIndx));
            attrNode.setNodeValue(attributes.getValue(attrIndx));
            elem.setAttributeNode(attrNode);
         }
      
         document.appendChild(elem);
        
         // construct parameter values for psychopath processor
         Map psychoPathParams = new HashMap();
         psychoPathParams.put("XPATH2_NS_CONTEXT", fXPath2NamespaceContext);
         initDynamicContext(null, document, psychoPathParams);
View Full Code Here

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

           Document doc = new DocumentImpl();

           Element colEle = doc.createElement("collection");
           colEle.setAttribute("compressed", "true");
           colEle.setAttribute("name", name);
           doc.appendChild(colEle);

           Element filEle = doc.createElement("filer");
           filEle.setAttribute("class", "org.apache.xindice.core.filer.BTreeFiler");
           colEle.appendChild(filEle);          
View Full Code Here

Examples of org.apache.xml.security.signature.ObjectContainer.appendChild()

      props.addSignatureProperty(prop1);

      ObjectContainer object = new ObjectContainer(doc);

      object.appendChild(doc.createTextNode("\n"));
      object.appendChild(props.getElement());
      object.appendChild(doc.createTextNode("\n"));
      sig.appendObject(object);
      sig.addDocument("#prop1");
View Full Code Here

Examples of org.apache.xml.security.signature.SignatureProperty.appendChild()

            SignatureProperty profile = new SignatureProperty(doc, target,
                SignerConstants.SIGNATURE_PROPERTY_ID_PROFILE);
            Element profileElement = doc
                .createElement(SignerConstants.SIGNATURE_PROPERTY_ID_PROFILE_TAG_NAME);
            profileElement.setAttribute("URI", SignerConstants.PROFILE_URI);
            profile.appendChild(profileElement);

            SignatureProperty role = new SignatureProperty(doc, target,
                SignerConstants.SIGNATURE_PROPERTY_ID_ROLE);
            Element roleElement = doc
                .createElement(SignerConstants.SIGNATURE_PROPERTY_ID_ROLE_TAG_NAME);
View Full Code Here

Examples of org.apache.xml.security.utils.HelperNodeList.appendChild()

                                                   + "\" is illegal");
            }

            XPath2FilterContainer c = new XPath2FilterContainer(doc, xpath, type);

            nl.appendChild(c.getElement());
            XMLUtils.addReturnToElement(doc, nl);
        }

        return nl;
    }
View Full Code Here

Examples of org.dom4j.dom.DOMDocument.appendChild()

      org.dom4j.Element pubsubElement = result.setChildElement("pubsub", "http://jabber.org/protocol/pubsub");
      org.dom4j.Element itemsElement = pubsubElement.addElement("items");
      itemsElement.addAttribute("node", PEPActivityHandler.NODE);

      for (ActivityEntry entry : activities) {
        Element entryElement = (Element) domDocument.appendChild(domDocument.createElementNS(Atom.NAMESPACE, Atom.ENTRY_ELEMENT));
        writer.write(entry, entryElement);
        domDocument.removeChild(entryElement);
        org.dom4j.Element itemElement = itemsElement.addElement("item");
        itemElement.addAttribute("id", entry.getId());
        itemElement.add((org.dom4j.Element) entryElement);
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.