XML_Tree::&insertChild

XML_Tree::&insertChild – 子ツリーを挿入するう

Synopsis

require_once "XML/Tree.php";

object XML_Tree_Node XML_Tree::&insertChild ( array $path , integer $pos , mixed $child , string $content='' , array $attributes=array() )

Description

位置$posのパス$path に子かツリーを挿入し、 名前空間保全を維持します。

Parameter

  • array $path - 挿入する子の親パスです。

  • integer $pos - その親子供リストに挿入される子供の位置です。

  • mixed $child - 子ノード (XML_TreeXML_Nodeか名前による)です。

  • string $content - 新ノードの内容(テキスト)です。

  • array $attributes - 新ノードの属性ハッシュです。

Return value

object XML_Tree_Node - 挿入した子(ノード)です。

Note

This function can not be called statically.

ルートノードの追加をする (Previous) 子要素をツリーから削除する (Next)
Last updated: Fri, 25 May 2012 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.