29 May
2012
29 May
'12
7:40 p.m.
Hi, Any idea why objectify.parse() is returning an lxml.etree._ElementTree object while objectify.parsestring() returns lxml.objectify.ObjectifiedElement? I've installed lxml 2.3.4 using easy_install on Ubuntu 10.04. from lxml import objectify import StringIO obj = objectify.parse(StringIO.StringIO("<foo><bar>1</bar></foo>")) print type(obj) #prints <type 'lxml.etree._ElementTree'> Thanks, Roger