e7e4023b14
Content corresponds with RHEL dist-git commit b4ada95
8 lines
170 B
Python
8 lines
170 B
Python
import lxml.etree as et
|
|
s = '<foo><bar baz="xyzzy">a<![CDATA[b]]>c</bar></foo>'
|
|
x = et.fromstring(s)
|
|
t = x.find('bar').text
|
|
print(t)
|
|
if t != 'abc':
|
|
raise Exception()
|