Java XML Duration Add addElement(String name, Element parent)

Here you can find the source of addElement(String name, Element parent)

Description

add Element

License

Open Source License

Declaration

private static Element addElement(String name, Element parent) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Element;

public class Main {
    private static Element addElement(String name, Element parent) {
        Element e = parent.getOwnerDocument().createElement(name);
        parent.appendChild(e);/*  www  .  ja v a  2s  . co m*/
        return e;
    }
}

Related

  1. addElement(Element parent, String name)
  2. addElement(Element parent, String tagName)
  3. addElement(final Element parent, final String name, final Object value)
  4. addElement(Node parent, String elementName)
  5. addElement(Node parent, String name)
  6. addElementFirst(final Element parent, final String name)
  7. addElementFirst(final Element parent, final String name)
  8. addLongElementNS(Element parent, String namespaceURI, String tag, long value)
  9. addNamespacePrefix(Element parent, String namespace, String basePrefix)