def _getNodesAsTags(root):
    nodelist = root.childNodes
    tags = []
    for node in nodelist:
        if (node.nodeType == node.ELEMENT_NODE):
            tags.append(Tag(node))
    return tags
def _getNodesAsTags(root):
    nodelist = root.childNodes
    tags = []
    for node in nodelist:
        if (node.nodeType == node.ELEMENT_NODE):
            tags.append(Tag(node))
    return tags