done: checking nodes and attributes, left: checking text content