add Overlays Node to XML Element - Java XML

Java examples for XML:DOM Node

Description

add Overlays Node to XML Element

Demo Code


//package com.java2s;

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

public class Main {
    public static final String OVERLAYS_NODE = "overlays";

    public static Element addOverlaysNode(Document document, Element parent) {
        Element element = document.createElement(OVERLAYS_NODE);
        parent.appendChild(element);/*from  ww  w  . j a  v a  2 s. c o  m*/
        return element;
    }
}

Related Tutorials