Android XML Element Child Create createChildElement(Element parent, String tagName, Document doc)

Here you can find the source of createChildElement(Element parent, String tagName, Document doc)

Description

create Child Element

Declaration

public static Element createChildElement(Element parent,
            String tagName, Document doc) 

Method Source Code

//package com.java2s;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class Main {
    public static Element createChildElement(Element parent,
            String tagName, Document doc) {
        Element child = doc.createElement(tagName);
        parent.appendChild(child);//from   w w  w  . j ava2 s . c  om
        return child;
    }
}

Related

  1. processAny(Element element, List any)