Q: XmlPullParser.getText() return null or "" in this situation? The XML file is:
<name></name>

If I parse the XML with:
String result = null;
if (parser.next() == XmlPullParser.TEXT) {
     result = parser.getText();
     parser.nextTag();
}
return result;

Does it return null or does it return an empty string "" ?

A: From the Android Developers XmlPullParser Reference

If element content is empty (content is "") then no TEXT event will be reported. 

So it should return null.
