ң

DomNode->insert_before

(unknown)

DomNode->insert_before - .

object DomNode->insert_before (object newnode, object refnode)

newnode refnode . . Σ , ݣ .

DomNode_insert_before() DomNode_append_child() , , , DomNode_append_child() .

1.
include("example.inc"); if(!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } $elements = $dom->get_elements_by_tagname("informaltable"); print_r($elements); $element = $elements[0]; $newnode = $element->insert_before($element, $element); $children = $newnode->children(); $attr = $children[1]->set_attribute("align", "left"); echo "<PRE>"; $xmlfile = $dom->dump_mem(); echo htmlentities($xmlfile); echo "</PRE>";

. DomNode_append_child() .


ң
DomNode->has_child_nodes DomNode->is_blank_node