get Chart Node from parent XML Element - Android XML

Android examples for XML:XML Node

Description

get Chart Node from parent XML Element

Demo Code


//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
}

Related Tutorials