public static function parse($text)
	{
		if (isset(static::$beforeParse))
		{
			$text = call_user_func(static::$beforeParse, $text);
		}

		$xml = static::getCachedParser()->parse($text);

		if (isset(static::$afterParse))
		{
			$xml = call_user_func(static::$afterParse, $xml);
		}

		return $xml;
	}
public static function parse($text)
	{
		if (isset(static::$beforeParse))
		{
			$text = call_user_func(static::$beforeParse, $text);
		}

		$xml = static::getCachedParser()->parse($text);

		if (isset(static::$afterParse))
		{
			$xml = call_user_func(static::$afterParse, $xml);
		}

		return $xml;
	}
public static function parse ( $ text ) { if ( isset ( static :: $ beforeParse ) ) { $ text = call_user_func ( static :: $ beforeParse , $ text ) ; } $ xml = static :: getCachedParser ( ) -> parse ( $ text ) ; if ( isset ( static :: $ afterParse ) ) { $ xml = call_user_func ( static :: $ afterParse , $ xml ) ; } return $ xml ; }
Parse given text using a singleton instance of the bundled Parser

@param  string $text Original text
@return string       Intermediate representation
Parse given text using a singleton instance of the bundled Parser