Android XmlPullParser Read readText(XmlPullParser parser)

Here you can find the source of readText(XmlPullParser parser)

Description

read Text

License

Open Source License

Declaration

public static String readText(XmlPullParser parser) throws IOException,
            XmlPullParserException 

Method Source Code

//package com.java2s;
import java.io.IOException;

import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

public class Main {
    public static String readText(XmlPullParser parser) throws IOException,
            XmlPullParserException {/*ww w.jav a  2  s .co m*/
        String result = "";
        if (parser.next() == XmlPullParser.TEXT) {
            result = parser.getText();
            parser.nextTag();
        }
        return result;
    }
}

Related

  1. readStringArray(XmlPullParser parser, String tagName, String delimiter)
  2. readStringAttribute(XmlPullParser in, String name)
  3. readText(XmlPullParser parser)
  4. readText(XmlPullParser parser)
  5. readText(XmlPullParser parser)
  6. readText(XmlPullParser parser, String tagName)
  7. readThisDoubleArrayXml( XmlPullParser parser, String endTag, String[] name)
  8. readThisDoubleArrayXml(XmlPullParser parser, String endTag, String[] name)
  9. readThisIntArrayXml(XmlPullParser parser, String endTag, String[] name)