Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/07/2015, 09:41
xoceunder
 
Fecha de Ingreso: junio-2012
Ubicación: En el Mundo
Mensajes: 759
Antigüedad: 11 años, 10 meses
Puntos: 10
duda en error con xml

saludos tengo esto echo
Código PHP:
Ver original
  1. <?php
  2.     //file_put_contents('files/config.opml', $opml);
  3.     require("../config.php");
  4.     require("../functions/cmum.php");
  5.     header("Content-type: text/xml; charset=".$charset);
  6.     print("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n");
  7.     $id = $_GET["id"];
  8.    
  9.         $mysqli=new mysqli($dbhost,$dbuser,$dbpass,$dbname);
  10.             $sql_st=$mysqli->query("SELECT * FROM streaming WHERE enabled='1' AND SubCategory ='".$id."'");
  11.  
  12.            while($res_st=$sql_st->fetch_array()) {
  13.           print("<channel>\n");
  14.           print("<title/>\n");
  15.           print("<description/>\n");
  16.           print("<item>\n");
  17.           print("<id>".$res_st["id"]."</id>\n");
  18.           print("<title>".$res_st["Title"]."</title>\n");
  19.           print("<description>".$res_st["Description"]."</description>\n");
  20.           print("<duration>".$res_st["Duration"]."</duration>\n");
  21.           print("<thumbnail url=\"http://".$setres["srv_ip"]."/".$res_st["SelectImage"]."\"/>\n");
  22.           if($res_st["Format"] == "hls"){
  23.           print("<content url=\"".$res_st["StreamingUrl"]."\" height=\"hls\"/>\n");
  24.           }elseif($res_st["Format"] == "mp4"){
  25.           print("<content url=\"".$res_st["StreamingUrl"]."\" height=\"720p\"/>\n");
  26.           }elseif($res_st["Format"] == "mp3"){
  27.           print("<content url=\"".$res_st["StreamingUrl"]."\" height=\"mp3\"/>\n");
  28.           }
  29.           print("</item>\n");
  30.           print("</channel>\n");
  31.           print("</rss>\n");
  32.            }
  33.  
  34.  
  35. ?>

pero me esta tirando error

XML Parsing Error: not well-formed
Location: http://192.168.20.102/cmum/tools/all.php?id=6
Line Number 16, Column 2:
</rss>
-^