public function removeChildByName($name)
	{
		if(isset($this->name2index[$name]))
		{
			$tmp = $this->children[$this->name2index[$name]];
			if(isset($tmp->id))
				unset($this->id2index[$tmp->id]);
			unset($this->children[$this->name2index[$name]], $this->name2index[$name]);
			return $tmp;
		}
		return null;
	}