How to extract text from tags using ElementTree

I have following XML file: \[code\]<class id="1" name="good/bad"> <verb> <token>like</token> <token>feel</token> </verb> <mess>This is <sugg>not</sugg> text</mess> <id type="incorrect">I'm glad to <marker>unsee you</marker>.</id> <id type="correct">I'm glad to see you.</id></class>\[/code\]I need to extract text from a specific tag. On http://effbot.org are very few examples and generally poor documentation. Maybe there are good examples somewhere else? And how process the text in the same tags (token) as separate entities? Thanks in advance! The result should be approximately as follows:\[code\](like) feel > not #This is not text\[/code\]
 
Back
Top