appendChild() 공개 메소드

Append a child node to this element.
public appendChild ( Horde_Xml_Element $element )
$element Horde_Xml_Element The element to append.
예제 #1
0
 public function testAppendChild()
 {
     $e = new Horde_Xml_Element('<element />');
     $e2 = new Horde_Xml_Element('<child />');
     $e->appendChild($e2);
     $this->assertEquals('<element><child/></element>', $e->saveXmlFragment());
 }