Re: [BangPypers] Regarding 2 XML Files Comparision using Python

2009-06-04 Thread Anand Balachandran Pillai
On Thu, Jun 4, 2009 at 1:15 PM, testing123 test wrote: > Hi all, >I am prasad.I need a help to write a python script to compare two > XML Files.Is there any tutorial.Should we include any library?Please help me > How to start? > Are you a bot or something ? Why do you keep repeating the

[BangPypers] Regarding 2 XML Files Comparision using Python

2009-06-04 Thread testing123 test
Hi all, I am prasad.I need a help to write a python script to compare two XML Files.Is there any tutorial.Should we include any library?Please help me How to start? Rgds, Prasad ___ BangPypers mailing list BangPypers@python.org http://mail.python.

Re: [BangPypers] Regarding 2 XML Files Comparision using Python

2009-06-04 Thread Srijayanth Sridhar
Hello, My name is Jayanth. I am new to BangPypers and Python in general. I have been working on Ruby however so I am not lost or anything. I wanted to point out that on ruby-lang several posters from India seem to have no concept of how to phrase questions. They also lack the basic curiosity to t

Re: [BangPypers] Regarding 2 XML Files Comparision using Python

2009-06-04 Thread Ruchir Shukla
okay sorry :) will keep in mind On Thu, Jun 4, 2009 at 3:20 PM, Venkatraman S wrote: > On Thu, Jun 4, 2009 at 3:07 PM, Ruchir Shukla wrote: > >> import difflib >> f=open('text1.txt','rb') >> text1=f.read() >> f.close() >> f=open('text2.txt','rb') >> text2=f.read() >> f.close() >> #print text1 >>

Re: [BangPypers] Regarding 2 XML Files Comparision using Python

2009-06-04 Thread Venkatraman S
On Thu, Jun 4, 2009 at 3:07 PM, Ruchir Shukla wrote: > import difflib > f=open('text1.txt','rb') > text1=f.read() > f.close() > f=open('text2.txt','rb') > text2=f.read() > f.close() > #print text1 > #print text2 > text1_lines = text1.splitlines(1) > text2_lines = text2.splitlines(1) > d = difflib.

Re: [BangPypers] Regarding 2 XML Files Comparision using Python

2009-06-04 Thread Anand Balachandran Pillai
On Thu, Jun 4, 2009 at 3:02 PM, Venkatraman S wrote: > On Thu, Jun 4, 2009 at 2:59 PM, testing123 test wrote: > >>I am prasad.I need a help to write a python script to compare two >> XML Files.Is there any tutorial.Should we include any library?Please help me >> How to start? > > What do

Re: [BangPypers] Regarding 2 XML Files Comparision using Python

2009-06-04 Thread Ruchir Shukla
import difflib f=open('text1.txt','rb') text1=f.read() f.close() f=open('text2.txt','rb') text2=f.read() f.close() #print text1 #print text2 text1_lines = text1.splitlines(1) text2_lines = text2.splitlines(1) d = difflib.HtmlDiff() diff = d.make_file(text1_lines, text2_lines) print diff To find

Re: [BangPypers] Regarding 2 XML Files Comparision using Python

2009-06-04 Thread Venkatraman S
On Thu, Jun 4, 2009 at 2:59 PM, testing123 test wrote: >I am prasad.I need a help to write a python script to compare two > XML Files.Is there any tutorial.Should we include any library?Please help me > How to start? > It is a structured document! Please use some basic CS skills. -V- __

[BangPypers] Regarding 2 XML Files Comparision using Python

2009-06-04 Thread testing123 test
Hi all, I am prasad.I need a help to write a python script to compare two XML Files.Is there any tutorial.Should we include any library?Please help me How to start? Rgds, Prasad ___ BangPypers mailing list BangPypers@python.org http://mail.python.