title: How could I convert from NodeList to Array and work with this Array in others class?
body: <p>I trying to work with a XML file from where a get a list of IPs and subnets, after that I want to check if those IP are within of a subnet.</p>
  
  <pre><code>QueryXML getNodes = new QueryXML(Queries);  
  NodeList IPs = getNodes.query();
  
  QueryXML getSubnets = new QueryXML(Queries1);
  NodeList subnets = getSubnets.query();
  </code></pre>
  
  <p>At this point, I already have my NodeList with each element from the XML file (Ips &amp; subnets), but my problem now is that, I would like to convert those NodeList to Array and so, use the following element which is calling a constructur with two arrays as a parameter.</p>
  
  <pre><code>SubnetUtilsExample findobjects = new SubnetUtilsExample(IPs, subnets); 
  </code></pre>
  
  <p>I googled it but i didnt find a right way. Could somebody help me with that?</p>
  
  <p>Thanks.</p>