Examples of appendChild()


Examples of org.dykman.dexter.descriptor.Descriptor.appendChild()

      for (int i = 0; i < nc; ++i)
      {
        Node child = children.item(i);
        if(child != null &&  child.getParentNode() != null)
        {
          parent.appendChild(marshall(child));
        }
     
      }
    } else {
      parent = new PassthroughDescriptor(node);
View Full Code Here

Examples of org.eclipse.jdt.core.IPackageFragmentRoot.appendChild()

              inserted = true;
              break;
            }
          }
          if(!inserted){
            root.appendChild(pages);
          }
        } else {
          pages = (Element)list.item(0);
        }
       
View Full Code Here

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

      doc.getModel().beginRecording(textView);

      if (rootElement == null) {
        // Create a beans element and add the default namespace
        rootElement = doc.createElement(BeansSchemaConstants.ELEM_BEANS);
        doc.appendChild(rootElement);

        INamespaceDefinition defNamespace = NamespaceUtils.getDefaultNamespaceDefinition();
        if (defNamespace != null) {
          if (!xsdViewer.getChecked(defNamespace)) {
            xsdViewer.setChecked(defNamespace, true);
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement.appendChild()

      for (int i = 0, n = nl.getLength(); i < n; i++) {
        list.add(nl.item(i));

      }
      for (int i = 0, n = list.size(); i < n; i++) {
        replacement.appendChild((Node) list.get(i));
      }
    }
    _element.getParentNode().replaceChild(replacement, _element);
    setReplacedElement(replacement);
  }
View Full Code Here

Examples of org.exist.dom.ElementImpl.appendChild()

         } else {
            parent.appendChildren(txn,nl,-1);
         }
      }
      DOMDB.removeChildren(txn,textE);
      textE.appendChild(parent.getOwnerDocument().createTextNode(value));
      return textE;
   }
  
   public static void appendChild(Txn txn,ElementImpl parent,Node child) {
      final NodeListImpl nl = new NodeListImpl(1);
View Full Code Here

Examples of org.jsoup.nodes.Document.appendChild()

        for ( Element header : headers ) {
            header.tagName( "h5" );
        }

        Document res = new Document( "" );
        res.appendChild( body.select( "div[id=main]" ).first() );

        resp.getOutputStream().write( res.outerHtml().getBytes() );

    }
}
View Full Code Here

Examples of org.jsoup.nodes.Element.appendChild()

                    this, request, context.getSession(), context.getUIClass(),
                    document, headers, fragmentResponse.getUIProvider());
            List<Node> fragmentNodes = fragmentResponse.getFragmentNodes();
            Element body = document.body();
            for (Node node : fragmentNodes) {
                body.appendChild(node);
            }

            setupStandaloneDocument(context, pageResponse);
            context.getSession().modifyBootstrapResponse(pageResponse);
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.OdfStylePropertiesBase.appendChild()

            // 9. tab stops vs background image
            StyleTabStopsElement tabStops = (StyleTabStopsElement) OdfXMLFactory.newOdfElement(dom, StyleTabStopsElement.ELEMENT_NAME);
            StyleTabStopElement tabStop1 = (StyleTabStopElement) OdfXMLFactory.newOdfElement(dom, StyleTabStopElement.ELEMENT_NAME);
            StyleTabStopElement tabStop2 = (StyleTabStopElement) OdfXMLFactory.newOdfElement(dom, StyleTabStopElement.ELEMENT_NAME);
            OdfStylePropertiesBase propElement = style1.getPropertiesElement(OdfStylePropertiesSet.ParagraphProperties);
            propElement.appendChild(tabStops);
            tabStops.appendChild(tabStop1);
            tabStops.appendChild(tabStop2);
            StyleBackgroundImageElement img = (StyleBackgroundImageElement) OdfXMLFactory.newOdfElement(dom, StyleBackgroundImageElement.ELEMENT_NAME);
            propElement = style2.getPropertiesElement(OdfStylePropertiesSet.ParagraphProperties);
            propElement.appendChild(img);
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.draw.DrawAElement.appendChild()

      DrawAElement aElement = mOwnerDocument.getContentDom()
          .newOdfElement(DrawAElement.class);
      aElement.setXlinkHrefAttribute(linkto.toString());
      aElement.setXlinkTypeAttribute("simple");
      parent.removeChild(thisFrame);
      aElement.appendChild(thisFrame);
      if (brother == null)
        parent.appendChild(aElement);
      parent.insertBefore(aElement, brother);
    } catch (Exception e) {
      Logger.getLogger(Frame.class.getName()).log(Level.SEVERE, e.getMessage(), e);
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.draw.DrawFrameElement.appendChild()

      DrawFrameElement frame = contentDom.newOdfElement(DrawFrameElement.class);
      frame.setSvgHeightAttribute("3in");
      frame.setSvgWidthAttribute("7in");
      DrawImageElement image = contentDom.newOdfElement(DrawImageElement.class);
      image.setXlinkHrefAttribute("Pictures/myHoliday.jpg");
      frame.appendChild(image);

      TextPElement para = (TextPElement) xpath.evaluate("//text:p[1]", contentDom, XPathConstants.NODE);
      para.appendChild(frame);
      doc.save(TEST_FILE_FOLDER + New_File);
      doc.close();
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.