<?php header('Content-type: text/xml'); include ("../../Utilidades/parse_vars.php"); include ('../../Utilidades/Funciones.php'); include ('../../Utilidades/envia_email.php'); dbquery("UPDATE Cotizacion SET cot_estado='ACEPTADA' WHERE cot_id='$IdCotizacion'"); SendEmail($IdCotizacion); $dom = new DOMDocument(); $data = $dom->createElement('data'); $dom->appendChild($data); $xmlString = $dom->saveXML(); echo $xmlString; ?>