public function setXML(&$xml)
	{
		if (is_object($xml))
		{
			if ($group = $xml['group'])
			{
				$this->_xml[(string) $group] = $xml;
			}
			else
			{
				$this->_xml['_default'] = $xml;
			}

			if ($dir = $xml['addpath'])
			{
				$this->addElementPath(PATH_ROOT . str_replace('/', DS, (string) $dir));
			}
		}
	}
public function setXML(&$xml)
	{
		if (is_object($xml))
		{
			if ($group = $xml['group'])
			{
				$this->_xml[(string) $group] = $xml;
			}
			else
			{
				$this->_xml['_default'] = $xml;
			}

			if ($dir = $xml['addpath'])
			{
				$this->addElementPath(PATH_ROOT . str_replace('/', DS, (string) $dir));
			}
		}
	}
public function setXML ( & $ xml ) { if ( is_object ( $ xml ) ) { if ( $ group = $ xml [ 'group' ] ) { $ this -> _xml [ ( string ) $ group ] = $ xml ; } else { $ this -> _xml [ '_default' ] = $ xml ; } if ( $ dir = $ xml [ 'addpath' ] ) { $ this -> addElementPath ( PATH_ROOT . str_replace ( '/' , DS , ( string ) $ dir ) ) ; } } }
Sets the XML object from custom XML files.

@param   object  &$xml  An XML object.
@return  void
Sets the XML object from custom XML files .