hi ddd,
this is mahesh here
use xml,xsl,& xslt,xml schema
if you want to simply compare two html files you can use regular expresion
for byte by byte comparision but i think you want to point out differance
between the contents of two html files then i would suggest you to use xml &
xslt transformation to transform xml into html
then it will be easyer for you to point out difference between content of
two xml file (indirectly html file)
since xml imposes tree structure on documents for whitch you can use xml
schema(xsd)
& comparing nodes you can compare differance between contents of document
i am also newbee in programming field so my suggetion may be stupid if so
excuse me
bye have a good day,
ma************@yahoo.com
akstech solutions pvt ltd
"ddd" wrote:
I am trying to build a diff tool that allows me to compare two HTML files. I
am looking for resources on how to achive this. The main problem is that I do
not want to simply highlight the line of code where the change happened, but
rather the word/text that changed.
Example say the html file contains a table with three cells/one row, and all
that changes between the two HTML files that I want to compare is the value
on the second cell. I need to be able to distinuish that thats what changed,
even if the actual html code was one single line. (basically comparing what
is being rendered displayed by the HTML renderer).
Any ideas suggestions on where I can start looking ?
thanks