I am sniffing packets on the network and recovering the XML data from the raw payload using Scapy and Python. The XML data I get has a few tags missing when I assemble the frames.Thus, I cannot parse the XML file using etree.parse() function. Is there any method by which I can parse the broken XML file and use XPATH expressions to traverse and get the data I want.