[Tutor] how to extract text by specifying an element using ElementTree
ps python
ps_python3 at yahoo.co.in
Thu Dec 8 19:42:15 CET 2005
Hi,
using ElementTree, how can I extract text of a
particular element, or a child node.
For example:
<biological_processess>
<biological_process>
Signal transduction
</biological_process>
<biological_process>
Energy process
</biological_process>
</biological_processess>
I looked at some tutorials (eg. Ogbuji). Those
examples described to extract all text of nodes and
child nodes.
In the case where I already know which element tags
have the information that I need, in such case how do
i get that specific text.
Thanks
Mdan
__________________________________________________________
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
More information about the Tutor
mailing list