public function getType( $name, $prefix = null )
	{
		// It can be the case that the type passed in is an array.  This can happen if the type for an
		// element is defined in the schema as simpleContent extending some base type by restriction.
		// In case this could be the case, look for an array with an element key of 'class' and value
		// 'simple'. If found, there should be an element with a key of 'parent'.  Use this.
		if ( is_array( $name ) && isset( $name['class'] ) && isset( $name['parent'] ) )
		{
			$name = $name['parent'];
		}

		if ( strpos( $name, ":" ) === false && is_null( $prefix ) )
		{
			// Assume xs
			$prefix = "xs";
		}

		return $this->hasType( $name, $prefix )
			? $this->types[ is_null( $prefix ) ? $name : "$prefix:$name" ]
			: false;
	}
public function getType( $name, $prefix = null )
	{
		// It can be the case that the type passed in is an array.  This can happen if the type for an
		// element is defined in the schema as simpleContent extending some base type by restriction.
		// In case this could be the case, look for an array with an element key of 'class' and value
		// 'simple'. If found, there should be an element with a key of 'parent'.  Use this.
		if ( is_array( $name ) && isset( $name['class'] ) && isset( $name['parent'] ) )
		{
			$name = $name['parent'];
		}

		if ( strpos( $name, ":" ) === false && is_null( $prefix ) )
		{
			// Assume xs
			$prefix = "xs";
		}

		return $this->hasType( $name, $prefix )
			? $this->types[ is_null( $prefix ) ? $name : "$prefix:$name" ]
			: false;
	}
public function getType ( $ name , $ prefix = null ) { // It can be the case that the type passed in is an array.  This can happen if the type for an
 // element is defined in the schema as simpleContent extending some base type by restriction.
 // In case this could be the case, look for an array with an element key of 'class' and value
 // 'simple'. If found, there should be an element with a key of 'parent'.  Use this.
 if ( is_array ( $ name ) && isset ( $ name [ 'class' ] ) && isset ( $ name [ 'parent' ] ) ) { $ name = $ name [ 'parent' ] ; } if ( strpos ( $ name , ":" ) === false && is_null ( $ prefix ) ) { // Assume xs
 $ prefix = "xs" ; } return $ this -> hasType ( $ name , $ prefix ) ? $ this -> types [ is_null ( $ prefix ) ? $ name : "$prefix:$name" ] : false ; }
Return a named type

@param string $name
@param string $prefix The prefix does not need to be supplied if it is already part of the name
@return boolean|array
Return a named type