title: How to get the elements of an XML tag in a String using Java?
body: <p>I am new to XML parsing. I have the following sample XML:</p>
  
  <pre><code>&lt;ErrorDetail&gt;&lt;Error&gt;Invalid cob date/FeedID &lt;/Error&gt;&lt;InvalidColumn&gt;FeesCom&lt;/InvalidColumn&gt;&lt;InvalidColumn&gt;Provis&lt;/InvalidColumn&gt;&lt;InvalidColumn&gt;&lt;/InvalidColumn&gt;&lt;/ErrorDetail&gt;
  </code></pre>
  
  <p>I need a Java code which gives me the contents of <code>ErrorDetail</code> tag in a String. Something which looks like:</p>
  
  <pre><code>String xmlString = "&lt;Error&gt;Invalid cob date/FeedID &lt;/Error&gt;&lt;InvalidColumn&gt;FeesCom&lt;/InvalidColumn&gt;&lt;InvalidColumn&gt;Provis&lt;/InvalidColumn&gt;&lt;InvalidColumn&gt;&lt;/InvalidColumn&gt;";
  </code></pre>
  
  <p>Can anyone help me with this ?</p>