Trying Write Python Program Parses Xml Files Folder Ip Addresses Listed Inside Want Put L Q37074229

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.