Entity References And Lxml
Here's the code I have: from cStringIO import StringIO from lxml import etree xml = StringIO('''
Solution 1:
The "unresolved" Entity is left as child node of the element node sub
>>> print d2.find('/sub')[0]
&test;
>>> d2.find('/sub').getchildren()
[&test;]
Post a Comment for "Entity References And Lxml"