(self)
| 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): |
no test coverage detected