grammar example with saved entry_xml

This commit is contained in:
matic_t
2020-08-11 07:41:47 -07:00
parent ec811028ab
commit 410054cdd6
2 changed files with 20 additions and 9 deletions

View File

@@ -23,15 +23,12 @@ class Entry(Data):
self.measure = {}
self.labels = []
self.senses = []
self.original_xml = None
def import_xml(self, entry_xml):
# console.log(entry_xml)
# xmlClone = entry_xml.cloneNode(True)
self.original_xml = entry_xml.cloneNode(True)
status = entry_xml.querySelector("head status")
# xmlClone.removeChild(status)
# console.log(xmlClone)
headword = entry_xml.querySelector("head headword lemma")
grammar = entry_xml.querySelector("head grammar category")