title: Parsing directory of multiple XML files into Java
body: <p>I have successfully parsed an XML file in Java and I can read and print values.</p>
  
  <pre><code>public static void main (String args[]) {
  
      try{
          String XML = "test.xml";
  
          DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
          DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
          Document doc = docBuilder.parse (new File(XML));
  </code></pre>
  
  <p>I now would like to parse a directory of XML and continue to do the same ( read and print).
  Im thinking a simple .txt file with XML filepaths:</p>
  
  <pre><code>"test.xml"
  "sample.xml"
  "name.xml"
  </code></pre>