title: How to get the value of each node's first child in NodeList?
body: <p>Id like to get the element name and value of the first child of each element. But I'm getting null values. Im pretty new to XML and I am stumped, just trying to get something working with pretty font. Theres about 15 children to the root, and theyre all called "DEvent", I would like my output to be:</p>
  
  <p>Event: Wednesday Trail Walks</p>
  
  <p>Event: BOW - Dog Mushing! </p>
  
  <p>etc.</p>
  
  <pre><code>    &lt;DNREvents&gt;
  &lt;DEvent&gt;
  &lt;event eid="1"&gt;Wednesday Trail Walks&lt;/event&gt;
  &lt;date&gt;2/03/2016&lt;/date&gt;
  &lt;time&gt;1-2:30 PM&lt;/time&gt;
  &lt;description&gt;...&lt;/description&gt;
  &lt;location&gt;Brown's Creek State Trail&lt;/location&gt;
  &lt;cost&gt;Free&lt;/cost&gt;
  &lt;infoPhone&gt;651-231-6968&lt;/infoPhone&gt;
  &lt;infoEmail&gt;LindaRadimecky@state.mn.us&lt;/infoEmail&gt;
  &lt;/DEvent&gt;
  &lt;DEvent&gt;
  &lt;event eid="2"&gt;BOW - Dog Mushing!&lt;/event&gt;
  &lt;date&gt;2/04/2016 thru 2/07/2016&lt;/date&gt;
  &lt;time&gt;Unknown&lt;/time&gt;
  &lt;description&gt;
  This off the grid adventure is for those who want to actively participate in every aspect of learning to run your own small team of sled dogs through miles and miles of beautiful trails in the remote wilderness of northern Minnesota. Limited to 4 participants
  &lt;/description&gt;
  &lt;location&gt;Grand Marais/Hovland&lt;/location&gt;
  &lt;cost&gt;$895&lt;/cost&gt;
  &lt;infoPhone&gt;218-370-0283&lt;/infoPhone&gt;
  &lt;infoEmail&gt;linda@points_unknown.com&lt;/infoEmail&gt;
  &lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;DEvent&gt;...&lt;/DEvent&gt;
  &lt;/DNREvents&gt;
  </code></pre>
  
  <p>My java to show the results-</p>
  
  <pre><code>Element DNR = root;
          NodeList EventList=DNR.getElementsByTagName("DEvent");
          for (int i=0; i&lt; EventList.getLength();i++)
          {
              Node thisNode = EventList.item(i);
              Node child = thisNode.getFirstChild();
              String x = child.getNodeValue();
              System.out.println(thisNode+ x);
          }
  </code></pre>