On Wed, Jun 15, 2011 at 8:46 PM, naheed arafat <naheed...@gmail.com> wrote: > Or there is any python module to get this job done?
The normal way this sort of thing is handled is that the HTML is in some form of template, where the tags you are talking about editing are variables. A common example is a web-based form where you want to present either a blank form or the same form pre-populated. So rather than generating the HTML, then editing it to be different you instead simple set the variables and generate the HTML and the result reflects whatever the variables were set to. There are multiple modules for such templates. This is assuming that you generate the HTML in the first place instead of trying to edit someone elses existing HTML. In that case you'd proceed as you described. -- Brett Ritter / SwiftOne swift...@swiftone.org _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor