[Tutor] how to extract text by specifying an element usingElementTree

Alan Gauld alan.gauld at freenet.co.uk
Sat Dec 10 01:24:43 CET 2005


> is there a way to get rid of '\n' and '\t' characters
> from xml files easily. 

You can read the entire file as a string then apply standard 
string replace functionality to substitute an empty string..

HTH,

Alan G
Author of the learn to program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld




More information about the Tutor mailing list