--TEST-- DOMNode: Element Siblings --EXTENSIONS-- dom --FILE-- loadXML('fooFirstElementLastElementbar'); $element = $dom->documentElement; print_node($element->firstElementChild->nextElementSibling); print_node($element->lastElementChild->previousElementSibling); ?> --EXPECT-- Node Name: bar Node Type: 1 Num Children: 1 Node Content: LastElement Node Name: bar Node Type: 1 Num Children: 1 Node Content: FirstElement