title: XmlResourceParser.getText() returning null
body: <p>I have an <code>XmlResourceParser</code> instance called <code>xml</code>. When I try to call <code>getText()</code> on a node, as seen in my code, it returns null. This is strange because I can call <code>getName()</code> on the same node it returns the proper value, so the instance is set up properly. Here is my code:</p>
  
  <pre><code>    XmlResourceParser xml = context.getResources().getXml(R.xml.thesaurus);
  
      try {
          //if (xml.getName().equals("word")) {
              xml.next(); //to the first node within &lt;word&gt;&lt;/word&gt;
              boolean notFound = true;
              while (notFound) {
                  xml.next();
                  if (xml.getName() != null &amp;&amp; xml.getName().equalsIgnoreCase("synonyms")) {
                      String synonym = xml.getText();
                      Log.v(TAG, String.valueOf(synonym));
                      notFound = false; //found
                  }
              }
          }
      } catch (XmlPullParserException xppe) {
          xppe.printStackTrace();
      } catch (IOException ioe) {
          ioe.printStackTrace();
      }
  </code></pre>
  
  <p>Here is my XML, even though there isn't anything wrong with it:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;thesaurus&gt;
      &lt;word name="let"&gt;
          &lt;synonyms&gt;allow&lt;/synonyms&gt;
      &lt;/word&gt;
  &lt;/thesaurus&gt;
  </code></pre>
  
  <p>Any help would be appreciated! Thanks!</p>