import xmltodict

xmlfile = open("show_security_zones.xml")
xmldata = xmlfile.read().strip()

my_xml = xmltodict.parse(xmldata)
print(my_xml)
print(type(my_xml))
for i, item in enumerate(my_xml["zones-information"]["zones-security"]):
    print(f"Security Zone #{i+1}: {item['zones-security-zonename']}")

bb181bbbdfc31a2e2a3eb4bbf1a2a398fd294cdc
<mask token>

<mask token>
print(my_xml)
print(type(my_xml))
for i, item in enumerate(my_xml['zones-information']['zones-security']):
    print(f"Security Zone #{i + 1}: {item['zones-security-zonename']}")

<mask token>
xmlfile = open('show_security_zones.xml')
xmldata = xmlfile.read().strip()
my_xml = xmltodict.parse(xmldata)
print(my_xml)
print(type(my_xml))
for i, item in enumerate(my_xml['zones-information']['zones-security']):
    print(f"Security Zone #{i + 1}: {item['zones-security-zonename']}")

import xmltodict
xmlfile = open('show_security_zones.xml')
xmldata = xmlfile.read().strip()
my_xml = xmltodict.parse(xmldata)
print(my_xml)
print(type(my_xml))
for i, item in enumerate(my_xml['zones-information']['zones-security']):
    print(f"Security Zone #{i + 1}: {item['zones-security-zonename']}")

import xmltodict

xmlfile = open("show_security_zones.xml")
xmldata = xmlfile.read().strip()

my_xml = xmltodict.parse(xmldata)
print(my_xml)
print(type(my_xml))
for i, item in enumerate(my_xml["zones-information"]["zones-security"]):
    print(f"Security Zone #{i+1}: {item['zones-security-zonename']}")
