php domdocument get all elements code example Example: php domdocument list all elements foreach($dom->getElementsByTagName('*') as $element ){ }