I am trying to write a python program which parses through allthe XML files in a folder for the IP addresses listed inside them.I then want to put all listed IP address found within the xml filesin an array. So far my code is something like this
import mysql.connectorimport csvimport osimport xml.etree.ElementTree as ETfrom xml.dom import minidomimport arraydef parseXML(xmlfile): # create element tree object tree = ET.parse(xmlfile) # get root element root = tree.getroot()this is to read through all files with the pathpath=’C:UsersjipetDesktopfinal projecttestcases’this is the for loop to
OR
OR