XML Child node attribute
<p>I am trying to retrieve attributes for parent and child nodes. I tried to use the example 
<a href="http://stackoverflow.com/questions/2833281/xml-child-node-attribute-value">showed here</a> but it is giving me "can't be applied to given type".</p>

<pre><code>static class Entry {
   final String ED,Home, Shift, Detail;
   Entry(String ED,String Home, String Shift,String Detail) {
      this.ED= ED;
      this.Home = Home;
      this.Shift = Shift;
      this.Detail = Detail;
      Node entryNode = entriesNodeList.item(i);
      entries.add(new Entry(
         evalString(entryNode, "Home/@name"),  
         evalString(entryNode, "Home/@starDate"),
         evalString(entryNode, "Home/@endDate"), 
         evalString(entryNode, "Home/Shift/@employeeID"),
         evalString(entryNode, "Home/Shift/@start"),
         evalString(entryNode, "Home/Shift/@end"), 
         evalString(entryNode, "Home/Shift/Detail/@start"), 
         evalString(entryNode, "Home/Shift/Detail/@end")
</code></pre>

<p>XML FILE:   </p>

<pre><code>`&lt;ED CS="BLUE" Timestamp="2011-03-23 13:57:01" xmlns:js="TEST/js"&gt;
 &lt;Home name="57511" startDate="2011-03-12" endDate="2011-03-18"&gt;
 &lt;Shift ID="1170108" start="2011-03-12 0718" end="2011-03-12 1636" &gt;
 &lt;Detail type="Meal" start="2011-03-12 1218" end="2011-03-12 1248" /&gt; 
 &lt;/Shift&gt;
 &lt;/ED&gt;`
</code></pre>
