title: getting the rel="alternate" href value from xml feed using java DocumentBuilder
body: <p>need your help..sure that it will look like a dumb question for the experience Xmls developers</p>
  
  <p>I am trying to read the following feed :</p>
  
  <p><a href="http://feeds.feedburner.com/Orangette" rel="nofollow">http://feeds.feedburner.com/Orangette</a> </p>
  
  <p>using InputStream and Document for parse the xml</p>
  
  <p>like : Document dom = db.parse(in);</p>
  
  <p>this is how the  entry elemet look like :</p>
  
  <pre><code>&lt;entry&gt;
  &lt;id&gt;tag:blogger.com,1999:blog-7793856.post-7139617615025474381&lt;/id&gt;
  &lt;published&gt;2011-03-21T10:42:00.000-07:00&lt;/published&gt;
  &lt;updated&gt;2011-03-21T10:44:11.297-07:00&lt;/updated&gt;
  &lt;title type="text"&gt;It's called the Pantry&lt;/title&gt;
  &lt;summary type="html"&gt;Well. World events don’t seem to get any less troubling, so we might as well get back to business.  Yes?Last week, I said that I wanted to tell you about a new project, and I still do.  It’s a project that grows out of Delancey, but it’s a whole new thing: a business headed up by two of our friends, Brandi Henderson and Olaiya Land. Brandon is technically the third partner, but this baby really &amp;lt;img src="http://feeds.feedburner.com/~r/Orangette/~4/X6Tm2_LpxYI" height="1" width="1"/&amp;gt;&lt;/summary&gt;
  &lt;link rel="replies" type="application/atom+xml" href="http://orangette.blogspot.com/feeds/7139617615025474381/comments/default" title="Post Comments" /&gt;
  &lt;link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=7793856&amp;amp;postID=7139617615025474381" title="163 Comments" /&gt;
  &lt;link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7793856/posts/default/7139617615025474381" /&gt;
  &lt;link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7793856/posts/default/7139617615025474381" /&gt;
  &lt;link rel="alternate" type="text/html" href="http://orangette.blogspot.com/2011/03/its-called-pantry.html" title="It's called the Pantry" /&gt;
  &lt;author&gt;
    &lt;name&gt;Molly&lt;/name&gt;
    &lt;uri&gt;http://www.blogger.com/profile/01493708300940204826&lt;/uri&gt;
    &lt;email&gt;cheeseandchocolate@gmail.com&lt;/email&gt;
    &lt;gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="07818414465072164731" /&gt;
  &lt;/author&gt;
  &lt;media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-G2usp64xroc/TYaQ0wdcaUI/AAAAAAAAC_o/L4l6deIvm6U/s72-c/5544384475_858400a1f7_z.jpg" height="72" width="72" /&gt;
  &lt;thr:total&gt;163&lt;/thr:total&gt;&lt;/entry&gt;
  </code></pre>
  
  <p>all working good except for getting only one rel and take is href value</p>
  
  <p>the alternate rel is the relevant one in this case</p>
  
  <pre><code>&lt;link rel="alternate" type="text/html" href="http://orangette.blogspot.com/2011/03/its-called pantry.html" title="It's called the Pantry" /&gt;
  </code></pre>
  
  <p>waste many hours trying to get him out of there..but nada, will be Happy to get any leads..</p>