- 7.18. Opt_Xml_Scannable class
7.18.15. replaceChild() - 7.18.14. removeChildren()
« Previous - 7.18.16. sort()
Next »
7.18.15. replaceChild()
| Construct | Method |
|---|---|
| Visibility | public |
| Reference | bool replaceChild(Opt_Xml_Scannable $newNode, mixed $refNode [, $dispose = false ]) |
| Argument list |
|
| Returned value | True on success |
Replaces the child node $refNode with the $newNode. $refNode may be specified either by the order number or by the object. The method returns true, if the replacement is successful. The third, optional argument, $dispose controls disposing the memory of the old node. If the value is set to true, the old node is destroyed after replacing.
$disposeargument is available since OPT 2.0.1.
- 7.18.15. replaceChild()
7.18. Opt_Xml_Scannable class - « Previous
7.18.14. removeChildren() - Next »
7.18.16. sort()