How can i get element text in node in Java?
<p>I am new to Android Development,and want to parse the XML and bind to Google MapView.
However, i cannot read the Text between element.</p>

<p>The XML</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf8"?&gt;
    &lt;table name="clinicaddress"&gt;
        &lt;row&gt;
            &lt;GeoPoint&gt;22.3852860,113.9664120&lt;/GeoPoint&gt;
        &lt;/row&gt;
        &lt;row&gt;
            &lt;GeoPoint&gt;22.336950,114.1578720&lt;/GeoPoint&gt;
        &lt;/row&gt;
    &lt;/table&gt;
</code></pre>

<p>The Code:</p>

<pre><code>import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.CharacterData;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;

try {
            inputStream = assetManager.open("clinics.xml");
            String xmlRecords = readTextFile(inputStream);
            //Log.e("Clinics XML", xmlRecords);

            InputSource is = new InputSource();
            is.setCharacterStream(new StringReader(xmlRecords));

            DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
            DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
            Document doc = docBuilder.parse(is);

            doc.getDocumentElement ().normalize ();

            NodeList listOfClinics = doc.getElementsByTagName("row");
            Log.e("listOfClinics Length" , String.valueOf(listOfClinics.getLength()));

            //Loop the XML

            for (int x = 0; x &lt; listOfClinics.getLength(); x++) {
                Node ClinicNode = listOfClinics.item(x);
                NodeList ClinicInfo = ClinicNode.getChildNodes();
                for (int y = 0; y &lt; ClinicInfo.getLength(); y++) {
                    Node info = ClinicInfo.item(y);
                    Log.e(info.getNodeName() , info.getNodeValue()); //&lt;--Error on info.getNodeValue()
                }
}
            //End Loop XML
        } catch (Exception e) {
            Log.e("tag", e.getMessage());
        }
</code></pre>

<p>So, what wrong with getNodeValue()???</p>

<p><img src="http://i.stack.imgur.com/4fpSl.jpg" alt="enter image description here"></p>

<p>And one more question, how can i set the Eclipse like Visual Studio,
If any error, it will break to the line on source line file, instead of just print out the stack message on debug windows.</p>

<p><strong>UPDATED 1.</strong>
I found this post:
org.w3c.dom.Node with Android version less than 2.2
<a href="http://stackoverflow.com/questions/4771119/org-w3c-dom-node-with-android-version-less-than-2-2">org.w3c.dom.Node with Android version less than 2.2</a></p>

<blockquote>
  <p>node.getTextContext() is the same as
  node.getFirstChild().getNodeValue().</p>
</blockquote>

<p>However, i try this, it is goes error too.</p>
