add support for mixed Element and Text nodes