i want to compare Html documents weather there are same tags with same arrangement regardless of different inner text and attribute values to be different. I just want to compare general tag structure. such as
<html>
<head>
</head>
<body>
<span class="my paragraph">comparison of general tag structure of html</span>
</body>
</html>
and
<html>
<head>
</head>
<body>
<span class="Mega Offer">free membership offer</span>
</body>
</html>
are same
but
<html>
<head><title>Different</title>
</head>
<body>
<span class="my paragraph">comparison of general tag structure of html</span>
</body>
</html>
is not same because there is one extra title tag in html structure of tags regardless of inner values and attribute values are same.