get self text content from Element - Android XML

Android examples for XML:XML Element

Description

get self text content from Element

Demo Code


//package com.java2s;
import org.w3c.dom.Element;

public class Main {
    public static String getSelf(Element e) {
        return e.getTextContent();
    }/*w w  w.ja  va  2  s  .co m*/
}

Related Tutorials