package org.ccci.gto.android.common.util;

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

import java.io.IOException;

public final class XmlUtils {
    /**
     * safely call nextText on all versions of Android.
     *
     * @param parser the current parser
     * @return the next text node from the XmlPullParser
     * @throws IOException
     * @throws XmlPullParserException
     * @see "http://android-developers.blogspot.com/2011/12/watch-out-for-xmlpullparsernexttext.html"
     */
    public static final String safeNextText(final XmlPullParser parser) throws IOException, XmlPullParserException {
        final String result = parser.nextText();
        if (parser.getEventType() != XmlPullParser.END_TAG) {
            parser.nextTag();
        }
        return result;
    }
}

@@ -424,16 +424,24 @@
  * @see 
+%3Ca href=
 %22http://
@@ -521,16 +521,59 @@
 xt.html%22
+%3EWatch out for XmlPullParser.nextText()%3C/a%3E
 %0A     */
@@ -591,22 +591,16 @@
  static 
-final 
 String s

fix javadoc @see tag