[Tutor] XML to text

Dinesh B Vadhia dineshbvadhia at hotmail.com
Fri Oct 24 20:09:14 CEST 2008


Yes, that's exactly what I was looking for.  Brilliant!




From: Kent Johnson 
Sent: Friday, October 24, 2008 10:59 AM
To: Dinesh B Vadhia 
Cc: tutor at python.org 
Subject: Re: [Tutor] XML to text


On Fri, Oct 24, 2008 at 11:54 AM, Dinesh B Vadhia
<dineshbvadhia at hotmail.com> wrote:
> I have a large number of xml files that I want to convert into text format.
> What is the best and easiest way to do this?  Thanks!

If by "convert into text format" you mean, strip all the xml markup
and leave just the text, then either of these recipes should work:
http://code.activestate.com/recipes/65128/
http://code.activestate.com/recipes/498286/

Kent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081024/2e56198f/attachment.htm>


More information about the Tutor mailing list