Re: XML parsing per record
Willem Ligtenberg wrote:
[color=blue]
> 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...[/color]
for x in function:
print 'function', x.text
</F>
Willem Ligtenberg wrote:
[color=blue]
> 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...[/color]
for x in function:
print 'function', x.text
</F>
Comment