Теперь, когда мы увидели основные функции модуля etree, давайте попробуем сделать еще несколько интересных вещей с нашими файлами HTML и XML. Почти всегда эти файлы содержат текст между тегами. Итак, давайте посмотрим, как мы можем добавить текст к нашим элементам:
This is an HTML fileThis is the head of that fileThis <a href="/ilgermeli-shetel-tili-afilshin-tili-penini-oulifi-english-file.html">is the title of that file</a>This 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