Comparing DOM trees 2003-01-28 - By mdumontier1797
Hi,
I'm trying to find out the best way to compare 2 DOM trees. Do i have to just walk the tree the do the comparison myself or is there an easier/better way. I 'm mostly interested in a structural comparison then a textual one. any help on this matter would be appreciated.
MD
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2722.900" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I'm trying to find out the best way to compare 2 DOM trees. Do i have to just walk the tree the do the comparison myself or is there an easier/better way. I'm mostly interested in a structural comparison then a textual one. any help on this matter would be appreciated.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>MD</FONT></DIV></BODY></HTML>
|
|