Fixed chaining of nodes in tree and excluded HTML and BODY from unique identification