title: How to read a big XML file in JAVA and Spilt it into small XML files Based on Tag?
body: <p>I am new to JAVA programming, now I in need of JAVA program to read a big XML file that containing .. tags. Sample input as follows. </p>
  
  <p>Input.xml</p>
  
  <pre><code>&lt;row&gt;
  &lt;Name&gt;Filename1&lt;/Name&gt;
  &lt;/row&gt;
  &lt;row&gt;
  &lt;Name&gt;Filename2&lt;/Name&gt;
  &lt;/row&gt;
  &lt;row&gt;
  &lt;Name&gt;Filename3&lt;/Name&gt;
  &lt;/row&gt;
  &lt;row&gt;
  &lt;Name&gt;Filename4&lt;/Name&gt;
  &lt;/row&gt;
  &lt;row&gt;
  &lt;Name&gt;Filename5&lt;/Name&gt;
  &lt;/row&gt;
  &lt;row&gt;
  &lt;Name&gt;Filename6&lt;/Name&gt;
  &lt;/row&gt;
   .
   .
  </code></pre>
  
  <p>I need output as first  <code>&lt;row&gt; &lt;/row&gt;</code> as a single .xml file with filename as filename1.xml
  and second <code>&lt;row&gt;..&lt;/row&gt;</code> as filename2.xml and so.</p>
  
  <p>Can anyone tell the steps how to do it in simple way with Java, it will be very useful if you give any sample codes ?</p>