src/XML/DOM/ObjectDeserializer.php
public static function deserialize( $xml, $strict = TRUE )
	{
		$parser	= new XML_DOM_Parser();
		$tree	= $parser->parse( $xml );
		$class	= $tree->getAttribute( 'class' );
		if( !class_exists( $class ) )
			throw new Exception( 'Class "'.$class.'" has not been loaded, yet.' );
		$object	= new $class();
		self::deserializeVarsRec( $tree->getChildren(), $object );
		return $object;
	}
public static function deserialize( $xml, $strict = TRUE )
	{
		$parser	= new XML_DOM_Parser();
		$tree	= $parser->parse( $xml );
		$class	= $tree->getAttribute( 'class' );
		if( !class_exists( $class ) )
			throw new Exception( 'Class "'.$class.'" has not been loaded, yet.' );
		$object	= new $class();
		self::deserializeVarsRec( $tree->getChildren(), $object );
		return $object;
	}
public static function deserialize ( $ xml , $ strict = TRUE ) { $ parser = new XML_DOM_Parser ( ) ; $ tree = $ parser -> parse ( $ xml ) ; $ class = $ tree -> getAttribute ( 'class' ) ; if ( ! class_exists ( $ class ) ) throw new Exception ( 'Class "' . $ class . '" has not been loaded, yet.' ) ; $ object = new $ class ( ) ; self :: deserializeVarsRec ( $ tree -> getChildren ( ) , $ object ) ; return $ object ; }
Builds Object from XML of a serialized Object.
@access		public
@param		string		$xml			XML String of a serialized Object
@return		mixed
Builds Object from XML of a serialized Object .