XBRL-Instance.php
public static function FromInstanceDocument( $instance_document, $taxonomy_file = null, &$instance = null, $allowNested = false, $useCache = false )
	{
		try
		{
			$instance = new XBRL_Instance();
			$instance->allowNested = $allowNested;
			if ( ! $instance->initialise( $instance_document, $taxonomy_file, $useCache ) )
			{
				return false;
			}
		}
		catch ( FormulasException $ex)
		{
			throw $ex;
		}
		catch( Exception $ex )
		{
			$instance->error = "Error initialising the instance document. It may contain invalid XML.\n";
			return false;
		}

		return $instance;
	}
public static function FromInstanceDocument( $instance_document, $taxonomy_file = null, &$instance = null, $allowNested = false, $useCache = false )
	{
		try
		{
			$instance = new XBRL_Instance();
			$instance->allowNested = $allowNested;
			if ( ! $instance->initialise( $instance_document, $taxonomy_file, $useCache ) )
			{
				return false;
			}
		}
		catch ( FormulasException $ex)
		{
			throw $ex;
		}
		catch( Exception $ex )
		{
			$instance->error = "Error initialising the instance document. It may contain invalid XML.\n";
			return false;
		}

		return $instance;
	}
public static function FromInstanceDocument ( $ instance_document , $ taxonomy_file = null , & $ instance = null , $ allowNested = false , $ useCache = false ) { try { $ instance = new XBRL_Instance ( ) ; $ instance -> allowNested = $ allowNested ; if ( ! $ instance -> initialise ( $ instance_document , $ taxonomy_file , $ useCache ) ) { return false ; } } catch ( FormulasException $ ex ) { throw $ ex ; } catch ( Exception $ ex ) { $ instance -> error = "Error initialising the instance document. It may contain invalid XML.\n" ; return false ; } return $ instance ; }
Create an instance from an instance document

@param string $instance_document The file containing the instance information
@param string $taxonomy_file The taxonomy for the instance document
@param XBRL_Instance &$instance A reference to the instance created by this call
@param bool $allowNested (optional: false) True if the caller wants to allow one or more <xbrl> containers to appear in a larger document
@param bool $useCache (default: false) If true the instance document will be read from the cache
@return XBRL_Instance|bool
Create an instance from an instance document