Read XML file in flat file in Java
<p>I am reading a file that is in xml format (has elements, attribute,..).  However, the contents in the file have no carriage return or space and all the contents are in one line.</p>

<p>I am searching for an element and will need to parse the value of the element.</p>

<p>I am thinking to use XMLStreamReader to read and parse the value. </p>

<p>Does it matter if the contents are in all in one line?  Or, is there another way I should look into?</p>

<p>Thanks.</p>
