def __init__(self, node):
    self.node = node
    self.name = node.nodeName
    self.contents = _getNodesAsTags(self.node)
    text = _getText(self.node)
    self.contents += text
    self.text = ''.join(text)
def __init__(self, node):
    self.node = node
    self.name = node.nodeName
    self.contents = _getNodesAsTags(self.node)
    text = _getText(self.node)
    self.contents += text
    self.text = .join(text)