php
,
html
,
xml
How to Parse HTML using PHP Native Classes
php - How to extract html comments and all html contained by node? - Stack Overflow
PHP: DOM - Manual
XPath Syntax