By the way, I know about findall, but when I iterate thruogh it like:
for x in function:
print 'function', x
I get:
function <Element 'Prot-ref_name_E' at 0xb7d10cf8>
function <Element 'Prot-ref_name_E' at 0xb7d10d10>
But ofcourse I want the information in there...
On Fri, 22 Apr 2005 15:22:17 +0200, Willem Ligtenberg wrote:
> As I'm trying to write the code using cElementTree.
> I stumble across one problem. Sometimes there are multiple values to
> retrieve from one record for the same element. Like this:
> <Prot-ref_name_E>ATP-binding cassette, subfamily G, member 1</Prot-ref_name_E>
> <Prot-ref_name_E>ATP-binding cassette 8</Prot-ref_name_E>
>
> How do you get not only the first, but the rest as well, so that I can
> store it in a list.
>
> Thanks in advance,
>
> Willem Ligtenberg
>
--
http://mail.python.org/mailman/listinfo/python-list