[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


using ElementTree, how can I extract text of a
particular element, or a child node. 

For example:

           Signal transduction
           Energy process

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. 


Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

More information about the Tutor mailing list