In 14 import xml etree ElementTree as etree In 15 doc etree fromstring

1
2
3
4
5
6
7
In [14]: import xml.etree.ElementTree as etree
In [15]: doc = etree.fromstring('<?xml version="1.0" encoding="utf-8"?><root><body>жажа</body></root>')
In [16]: print doc.find('body').text
-------> print(doc.find('body').text)
жажа