Object result;  if (parser.getEventType() == XmlPullParser.END_TAG) result = ""; else if (parser.getEventType() == XmlPullParser.TEXT) {
Object result = null;  if (parser.getEventType() == XmlPullParser.TEXT) {
    Object parseValue() throws IOException, XmlPullParserException {        parser.require(XmlPullParser.START_TAG, "", "value"); // precondition        parser.next();        Object result;        if (parser.getEventType() == XmlPullParser.END_TAG)            result = "";        else if (parser.getEventType() == XmlPullParser.TEXT) {            result = parser.getText();            parser.nextTag();        }        else {            parser.require(XmlPullParser.START_TAG, "", null);            String name = parser.getName();            result = parseType(name);            parser.require(XmlPullParser.END_TAG, "", name);            parser.nextTag();        }        parser.require(XmlPullParser.END_TAG, "", "value"); // postcond.        return result;    }