On Monday, April 18, 2016 at 1:19:43 PM UTC+5:30, Joaquin Alzola wrote: > Hi, > > Try to use the xml module. > > import xml.etree.ElementTree as ET > > That might help. > > BR > > Joaquin > > -----Original Message-----
> > > HI All, > > can you help me out in doing below. > > file: > <start> > guava > fruit > <end> > <start> > mango > fruit > <end> > <start> > orange > fruit > <end> > > need to delete from start to end if it contains mango in a file... > > output should be: > > <start> > guava > fruit > <end> > <start> > orange > fruit > <end> > > Thank you > -- > https://mail.python.org/mailman/listinfo/python-list > This email is confidential and may be subject to privilege. If you are not > the intended recipient, please do not copy or disclose its content but > contact the sender immediately upon receipt. Hi Alzola, Still any easier way ?? -- https://mail.python.org/mailman/listinfo/python-list