![](https://secure.gravatar.com/avatar/8b97b5aad24c30e4a1357b38cc39aeaa.jpg?s=120&d=mm&r=g)
10 Mar
2008
10 Mar
'08
10:27 a.m.
Hi Ian, Ian Bicking wrote:
I think they haven't tested the code much with lxml 2, so basically they haven't exercised the first case... though looking at the code some I'm not sure it works with the second case either
I guess you are referring to fromstring()? There /is/ a fromstring() in etree, which does the same as XML(). The reasoning is that for XML literals it reads well to write XML("< ... >") while when parsing from a string variable, it's more readable to write fromstring(some_content) Stefan