title: cannot extract time data from XML file
body: <p>I am trying write a software, which will have a video player, transcripts and run them in sync.</p>
  
  <p>I am having a problem with the transcripts at the moment. I have attached the XML file I am using:</p>
  
  <pre><code>NodeList nodeParagraphs = root.getElementsByTagName("u");
  NodeList nodeParagraphs2 = root.getElementsByTagName("internal-media");
    for(int i=0; i &lt; nodeParagraphs.getLength(); i++){
      Element nodeParagraph = (Element)nodeParagraphs.item(i); 
      Element nodeParagraph2 = (Element)nodeParagraphs2.item(i);
      String id = nodeParagraph.getAttribute("uID");
      String who = nodeParagraph.getAttribute("who");
      String Time = nodeParagraph2.getAttribute("start");
      Paragraph p = new Paragraph(who, id, Time);
  
      NodeList wNodeList = nodeParagraph.getElementsByTagName("w");
      for(int j=0; j &lt; wNodeList.getLength(); j++){
        Element wElem = (Element)wNodeList.item(j);
        String word = wElem.getTextContent();
        p.addWord(word);
      }
      chat.addParagraph(p);
    }
  </code></pre>
  
  <p>The problem is when I am displaying the transcripts, they are printing at the wrong time because there are multiple internal-media tags in each <code>u</code> section. It is taking all of them when I only need the first one for each paragraph. example show below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;CHAT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://www.talkbank.org/ns/talkbank"
        xsi:schemaLocation="http://www.talkbank.org/ns/talkbank http://talkbank.org/software/talkbank.xsd"
        Media="future" Mediatypes="video"
        PID="11312/t-00017262-1"
        Font="CAfont:13:0"
        Version="2.2.1"
        Lang="eng"
        Options="CA"
        Corpus="DaCapo"
        Date="1984-01-01"&gt;
    &lt;Participants&gt;
      &lt;participant
        id="DAC"
      name="Dacapo_Leader"
        role="Adult"
        language="eng"
  
      /&gt;
      &lt;participant
        id="MIC"
      name="Michael"
        role="Adult"
        language="eng"
  
      /&gt;
      &lt;participant
        id="LUI"
      name="Luis"
        role="Adult"
        language="eng"
  
      /&gt;
      &lt;participant
        id="NIN"
      name="Nina"
        role="Adult"
        language="eng"
  
      /&gt;
      &lt;participant
        id="KEN"
        role="Adult"
        language="eng"
  
      /&gt;
      &lt;participant
        id="JAK"
      name="Jakob"
        role="Adult"
        language="eng"
  
      /&gt;
      &lt;participant
        id="XXX"
        role="Unidentified"
        language="eng"
  
      /&gt;
      &lt;participant
        id="WOM"
      name="Dacapo_Woman"
        role="Adult"
        language="eng"
  
      /&gt;
    &lt;/Participants&gt;
    &lt;u who="KEN" uID="u0"&gt;
      &lt;w&gt;as&lt;/w&gt;
      &lt;w&gt;it&lt;/w&gt;
      &lt;w&gt;currently&lt;/w&gt;
      &lt;w&gt;stands&lt;/w&gt;
      &lt;w&gt;one&lt;/w&gt;
      &lt;w&gt;of&lt;/w&gt;
      &lt;w&gt;the&lt;/w&gt;
      &lt;w&gt;things&lt;/w&gt;
      &lt;w&gt;that&lt;/w&gt;
      &lt;w&gt;people&lt;/w&gt;
      &lt;w&gt;do&lt;/w&gt;
      &lt;internal-media
        start="0.000"
        end="2.520"
        unit="s"
      /&gt;
      &lt;w&gt;is&lt;/w&gt;
      &lt;w&gt;create&lt;/w&gt;
      &lt;internal-media
        start="2.520"
        end="3.240"
        unit="s"
      /&gt;
      &lt;w&gt;one&lt;/w&gt;
      &lt;w&gt;of&lt;/w&gt;
      &lt;w&gt;the&lt;/w&gt;
      &lt;w&gt;things&lt;/w&gt;
      &lt;w&gt;that&lt;/w&gt;
      &lt;w&gt;anthropologists&lt;/w&gt;
      &lt;w&gt;design&lt;/w&gt;
      &lt;w&gt;researchers&lt;/w&gt;
      &lt;w&gt;do&lt;/w&gt;
      &lt;internal-media
        start="3.240"
        end="6.720"
        unit="s"
      /&gt;
      &lt;w&gt;is&lt;/w&gt;
      &lt;w&gt;they&lt;/w&gt;
      &lt;w&gt;create&lt;/w&gt;
      &lt;w&gt;distance&lt;/w&gt;
      &lt;w&gt;between&lt;/w&gt;
      &lt;w&gt;business&lt;/w&gt;
      &lt;w&gt;people&lt;/w&gt;
      &lt;internal-media
        start="6.720"
        end="9.160"
        unit="s"
      /&gt;
      &lt;w&gt;and&lt;/w&gt;
      &lt;w&gt;uh&lt;/w&gt;
      &lt;t type="missing CA terminator"&gt;&lt;/t&gt;
      &lt;media
        start="9.160"
        end="11.200"
        unit="s"
      /&gt;
    &lt;/u&gt;
    &lt;u who="DAC" uID="u1"&gt;
      &lt;w&gt;participants&lt;/w&gt;
      &lt;t type="missing CA terminator"&gt;&lt;/t&gt;
      &lt;media
        start="11.200"
        end="11.800"
        unit="s"
      /&gt;
    &lt;/u&gt;
  </code></pre>