primer bosquejo para cune

FossilOrigin-Name: 415cd610f28f743b8ae79e98f49d34c8d1fa4cf5f5a542c03226a642457b28c0
This commit is contained in:
bit4bit
2021-11-06 02:38:41 +00:00
parent 3b2e3ff8a0
commit 35e1c5b609
4 changed files with 179 additions and 7 deletions

View File

@@ -353,7 +353,9 @@ class FachoXML:
def get_element_attribute(self, xpath, attribute):
elem = self.get_element(xpath)
print(elem.attrib)
if elem is None:
raise ValueError("xpath %s not found" % (xpath))
return self.builder.get_attribute(elem, attribute)
def get_element(self, xpath):