
	$update_host = "$update_host$product/$update_ver$channel/update/$build_target/$locale";
	//$update_file_link = str_replace(" ", "%20", $update_file);
	// if an update should be done and the file is readable, print the xml
	// otherwise print just the empty update element
	if(is_readable($updates_path . $update_file))\{
		echo "    <update type=\"$update_type\" displayVersion=\"$update_ver$channel\" appVersion=\"$update_ver\" platformVersion=\"$update_ver\" buildID=\"$build_id\" detailsURL=\"$update_detailsURL\">\n";
		if ($update_complete) \{
			echo "        <patch type=\"complete\" URL=\"$update_host/$update_file_complete_link\" hashFunction=\"SHA512\" hashValue=\"$update_file_complete_hash\" size=\"$update_file_complete_size\"/>\n";
		\}
		if ($update_partial && ($major == false)) \{
			echo "        <patch type=\"partial\" URL=\"$update_host/$update_file_partial_link\" hashFunction=\"SHA512\" hashValue=\"$update_file_partial_hash\" size=\"$update_file_partial_size\"/>\n";
		\}
		echo "    </update>\n";
	\}
\}
