private String readAlternateLink(XmlPullParser parser) throws IOException, XmlPullParserException {
  String link=null;
  parser.require(XmlPullParser.START_TAG,ns,"link");
  String tag=parser.getName();
  String relType=parser.getAttributeValue(null,"rel");
  if (relType.equals("alternate")) {
    link=parser.getAttributeValue(null,"href");
  }
  while (true) {
    if (parser.nextTag() == XmlPullParser.END_TAG) {
      break;
    }
  }
  return link;
}

private String readAlternateLink ( XmlPullParser parser ) throws IOException , XmlPullParserException { String link = null ; parser . require ( XmlPullParser . START_TAG , ns , "link" ) ; String tag = parser . getName ( ) ; String relType = parser . getAttributeValue ( null , "rel" ) ; if ( relType . equals ( "alternate" ) ) { link = parser . getAttributeValue ( null , "href" ) ; } while ( true ) { if ( parser . nextTag ( ) == XmlPullParser . END_TAG ) { break ; } } return link ; }
processes link tags in the feed .
