public static function fromSchemaType( $qname )
	{
		$types = SchemaTypes::getInstance();
		$type = $types->getType( "{$qname->prefix}:{$qname->localName}" );

		if ( ! $type ) return null;

		$datatype = new DOMSchemaDatatype( "{$qname->prefix}:{$qname->localName}" );
		$result = new DOMSchemaSimpleType( $qname, $datatype );
		return $result;
	}
public static function fromSchemaType( $qname )
	{
		$types = SchemaTypes::getInstance();
		$type = $types->getType( "{$qname->prefix}:{$qname->localName}" );

		if ( ! $type ) return null;

		$datatype = new DOMSchemaDatatype( "{$qname->prefix}:{$qname->localName}" );
		$result = new DOMSchemaSimpleType( $qname, $datatype );
		return $result;
	}
public static function fromSchemaType ( $ qname ) { $ types = SchemaTypes :: getInstance ( ) ; $ type = $ types -> getType ( "{$qname->prefix}:{$qname->localName}" ) ; if ( ! $ type ) return null ; $ datatype = new DOMSchemaDatatype ( "{$qname->prefix}:{$qname->localName}" ) ; $ result = new DOMSchemaSimpleType ( $ qname , $ datatype ) ; return $ result ; }
Create an instance for a type in the SchemaTypes types list if there is one
@param QName $qname
@return DOMSchemaSimpleType
Create an instance for a type in the SchemaTypes types list if there is one