def __init__(self, tree):
self.name = tree.attrib['<STR_LIT:name>']<EOL>ns = tree.findall('<STR_LIT>')<EOL>self.prefixes = {c.attrib['<STR_LIT>']: c.text for c in ns}<EOL>self.prefix = tree.attrib['<STR_LIT>']<EOL>self.url = self.prefixes[self.prefix]<EOL>self.urls = {v: k for k, v in self.prefixes.items()}<EOL>self.tree = self.convert_tree(tree)<EOL>self.roots = [c.tag for c in self.tree.getchildren()]<EOL>self.width = {}<EOL>
__init__ instantiates a Model instance.