xml extraction

This commit is contained in:
Khalim Conn-Kowlessar 2024-10-23 14:23:20 +01:00
parent 8f8e85c1e1
commit 60490cd4fa

View file

@ -804,7 +804,9 @@ class XmlParser:
pvc_frame = self.xml.getElementsByTagName("SAP-Property-Details")[0].getElementsByTagName(
"PVC-Window-Frames"
)[0].firstChild.nodeValue
)
pvc_frame = pvc_frame[0].firstChild.nodeValue if pvc_frame else None
multple_glazed_proportion = self.xml.getElementsByTagName("SAP-Property-Details")[0].getElementsByTagName(
"Multiple-Glazed-Proportion"