title: How to access values of .txt file in XML format?
body: <p>I have .txt files in the following format:</p>
  
  <pre><code>&lt;DOC&gt;
      &lt;DOCNO&gt; 123456 &lt;/DOCNO&gt;
      &lt;DOCTYPE&gt; MISCELLANEOUS &lt;/DOCTYPE&gt;
      &lt;TXTTYPE&gt; CAPTION &lt;/TXTTYPE&gt;
      &lt;AUTHOR&gt; MICHAEL &lt;/AUTHOR&gt;
      &lt;DATE&gt; 1.1.2012 &lt;/DATE&gt;
      &lt;TEXT&gt;
      Some Text
      &lt;/TEXT&gt;
  &lt;/DOC&gt;
  </code></pre>
  
  <p>How can I access tags in these .txt files using Java? I want to know if there is a way to <strong>directly access tags</strong> rather than reading the .txt file line by line.</p>