Java examples for XML:DOM Node
add Overlays Node to XML Element
//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; } }