*
* @return object XML_Tree
* @access public
- */
function clone() {
$clone=new XML_Tree($this->filename,$this->version);
$clone->root=$this->root->clone();
return($clone);
}
+ */
/**
* Print text representation of XML tree.
* clone node and all its children (recursive)
*
* @return object reference to the clone-node
- */
function &clone() {
$clone=new XML_Tree_Node($this->name,$this->content,$this->attributes);
foreach($temp as $varname => $value)
if (!in_array($varname,array('name','content','attributes','children')))
$clone->$varname=$value;
- */
return($clone);
}
-
+ */
/**
* inserts child ($child) to a specified child-position ($pos)
*