document_element is not a funktion --> no clauses at the end!!
must be:
$root = $doc->document_element;
![]() | DomDocument->document_element(no version information, might be only in CVS) DomDocument->document_element -- Returns root element node说明domelement DomDocument->document_element ( void )This function returns the root element node of a document. The following example returns just the element with name CHAPTER and prints it. The other node -- the comment -- is not returned. ![]()
MDummy
17-Mar-2006 11:55
document_element is not a funktion --> no clauses at the end!! | ![]() | |