MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / parse_xml

Method parse_xml

src/ifc4d/ifc4d/p62ifc.py:86–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 print("Overall Time", end2 - start)
85
86 def parse_xml(self):
87 tree = ET.parse(self.xml)
88 root = tree.getroot()
89 self.ns = {"pr": root.tag[1:].partition("}")[0]}
90 project = root.find("pr:Project", self.ns)
91 self.project["Name"] = project.findtext("pr:Name") or "Unnamed"
92 self.parse_calendar_xml(root)
93 self.parse_calendar_xml(project)
94 self.parse_wbs_xml(project)
95 self.parse_activity_xml(project)
96 self.parse_relationship_xml(project)
97 self.parse_resources_xml(root)
98
99 def parse_calendar_xml(self, project):
100 for calendar in project.findall("pr:Calendar", self.ns):

Callers 1

executeMethod · 0.95

Calls 7

parse_calendar_xmlMethod · 0.95
parse_wbs_xmlMethod · 0.95
parse_activity_xmlMethod · 0.95
parse_resources_xmlMethod · 0.95
parseMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected