I am looking for a way to get HTML page structure using PHP.
What I want to achieve is to be able to check whether the page structure was changed (NOT the content).
For example, I want to be able to know when a new feature was added (or removed) from a page with often changing content. If a feature was added or removed the structure gets changed also.
What is a good way to do that? Using DOMDocument, Xpath or any other method you can think of?
I have tried to use DOMDocument but is it a very difficult task...
Thoughts?