title: java: no suitable method found for parse(java.util.List<java.lang.String>)
body: <p>I'm having an issue with my code I'm assuming I'm missing a method, I want to create a list of strings and then print out the contents. Now I have written some code that does this for one string but I'd like to do it for a number of strings.</p>
  
  <pre><code>    @Test
      public void xmlFileParse () throws ParserConfigurationException, IOException, SAXException {
          List&lt;String&gt; fXmlFile = new ArrayList&lt;String&gt;();
          fXmlFile.add("src/test/resources/fixtures/event.xml");
          fXmlFile.add("src/test/resources/fixtures/country.xml");
  
  
          DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
          DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
          Document doc = dBuilder.parse(fXmlFile);
          NodeList nodes = doc.getElementsByTagName("subscription-update").item(0).getChildNodes();
  
          for(int i = 0; i &lt; nodes.getLength(); i++){
              Node node = nodes.item(i);
              if(node.getNodeType() == ELEMENT_NODE){
                  System.out.println("TABLE: [" + node.getNodeName() + "] ID: [" + node.getAttributes().getNamedItem("id").getNodeValue() + "]");    
                  }    
              }
          }
  </code></pre>
  
  <p>Here's the error I'm currently receiving. </p>
  
  <pre><code>Error:(65, 32) java: no suitable method found for parse(java.util.List&lt;java.lang.String&gt;)
      method javax.xml.parsers.DocumentBuilder.parse(java.io.InputStream) is not applicable
        (argument mismatch; java.util.List&lt;java.lang.String&gt; cannot be converted to java.io.InputStream)
      method javax.xml.parsers.DocumentBuilder.parse(java.lang.String) is not applicable
        (argument mismatch; java.util.List&lt;java.lang.String&gt; cannot be converted to java.lang.String)
      method javax.xml.parsers.DocumentBuilder.parse(java.io.File) is not applicable
        (argument mismatch; java.util.List&lt;java.lang.String&gt; cannot be converted to java.io.File)
      method javax.xml.parsers.DocumentBuilder.parse(org.xml.sax.InputSource) is not applicable
        (argument mismatch; java.util.List&lt;java.lang.String&gt; cannot be converted to org.xml.sax.InputSource)
  </code></pre>