|
DOMNode::removeChildRemoves child from list of children Beschreibung
public DOMNode DOMNode::removeChild
( DOMNode
$oldnode
)This functions removes a child from a list of children. Parameter-Liste
RückgabewerteIf the child could be removed the function returns the old child. Fehler/Exceptions
BeispieleThe following example will delete the chapter element of our XML document. Beispiel #1 Removing a child
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<book id="listing">
<title>My lists</title>
</book>
Siehe auch
|