title: Android XmlPullParser error
body: <p>I've found good example how to parse XML in android.com. Here is part of</p>
  
  <p><a href="http://developer.android.com/training/basics/network-ops/xml.html" rel="nofollow">http://developer.android.com/training/basics/network-ops/xml.html</a></p>
  
  <pre><code>private String readLink(XmlPullParser parser) throws IOException, XmlPullParserException     {
      String link = "";
      parser.require(XmlPullParser.START_TAG, ns, "link");
      String tag = parser.getName();
      String relType = parser.getAttributeValue(null, "rel");
      if (tag.equals("link")) {
          if (relType.equals("alternate")) {
              link = parser.getAttributeValue(null, "href");
              parser.nextTag();
          }
      }
      parser.require(XmlPullParser.END_TAG, ns, "link");
      return link;
  }
  </code></pre>
  
  <p>It can correctly parse when there is only one LINK tag in one single  tag. But it output error when there is so many LINK in single  tag. </p>
  
  <p>Please let me know how to fix this coding to parse multiple LINK tags in one single  tag.</p>