Теперь, когда мы увидели основные функции модуля etree, давайте попробуем сделать еще несколько интересных вещей с нашими файлами HTML и XML. Почти всегда эти файлы содержат текст между тегами. Итак, давайте посмотрим, как мы можем добавить текст к нашим элементам:
This is an HTML fileThis is the head of that fileThis is the title of that fileThis is the body of that file and would contain paragraphs etc This is the body of that file and would contain paragraphs etc "15">This is the body of that file and would contain paragraphs etc