DomNode->remove_child Removes child from list of children &reftitle.description; domtextDomNode->remove_child domtextoldchild This functions removes a child from a list of children. If child cannot be removed or is not a child the function will return &false;. If the child could be removed the functions returns the old child. Removing a child get_elements_by_tagname("tbody"); $element = $elements[0]; $children = $element->child_nodes(); $child = $element->remove_child($children[0]); echo "
";
$xmlfile = $dom->dump_mem(true);
echo htmlentities($xmlfile);
echo "
"; ?> ]]>
See also domnode_append_child.