If you use Java StAX api to read xml file, you may have some field missing some part. This post tracks how I solve the problem. The problem is solve by adding the following line of code.
XMLInputFactory inputFactory = XMLInputFactory.newInstance(); //add this line inputFactory.setProperty("javax.xml.stream.isCoalescing", true);
To read the full solution, go to my previous post about how to read large xml files in Java.
<pre><code> String foo = "bar"; </code></pre>