
Based on the feedback provided, please revise the function. The feedback is as follows:

# Feedback 
1- Using xml.etree.ElementTree.fromstring to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.etree.ElementTree.fromstring with its defusedxml equivalent function or make sure defusedxml.defuse_stdlib() is called
2- Using xml.etree.ElementTree to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.etree.ElementTree with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called.

# python function 

import xml.etree.ElementTree as ET

def parse_xml_to_table(xml_string):
    root = ET.fromstring(xml_string)
    table = []

    for child in root:
        row = {}
        for subchild in child:
            row[subchild.tag] = subchild.text
        table.append(row)

    return table
 Make sure to only use capital letters in your entire response.
user