Android examples for XML:XML Node
get Chart Node from parent XML Element
//package com.java2s; import org.w3c.dom.Element; public class Main { public static final String CHART_NODE = "chart"; public static Element getChartNode(Element parent) { return (Element) parent.getElementsByTagName(CHART_NODE).item(0); }//ww w . j a v a 2 s. c o m }