¿Cual es el problema? :)
¿Recibes el archivo, o la url?
Es tan facil como
Código PHP:
<?php
$url = $_POST['url'];
$result = tratar_xml($url); //true si el xml es correcto, false si no
$msg[1] = "Proceso realizado correctamente";
$msg[0] = "Porceso fallido";
echo '<?xml version="1.0" encoding="utf-8"?>
<response>
<status>Ok</status>
<info>
<message>'.$msg[$result].'</message>
</info>
</response>';
¿algo así buscas?
Un saludo!