Hola Amigos estoy teniendo un problema con una sindicación me muestra el siguiente mensaje.
sindicacion.php
This page contains the following errors:
error on line 32 at column 64: PCDATA invalid Char value 3
Below is a rendering of the page up to the first error.
Por favor si alguien me puede dar una mano
Muestro como tengo los dos archivos:
sindicacion.php
Código PHP:
<?php header ('Content-type: text/xml; content="text/html; charset=iso-8859-1'); echo ("<?xml version="1.0" encoding="iso-8859-1"?>");
?>
<rss version="2.0">
<channel>
<title>Ofertas Laborales - Mipagina .: Desarrollando :.</title>
<link>web</link>
<description>Ofertas Laborales / Version RSS</description>
<language>es</language>
<image>
<title>Ofertas Laborales / Version RSS</title>n
<url>/imgs/logo.jpg</url>
<link>web</link>
<description>Ofertas Laborales - Mipagina .: Desarrollando :.</description>
</image>
<?php
//mysql_connect ("localhost", "root", "pass")
or
die ("Cannot connect to database server.");
$resultado=mysql_query("SELECT * FROM pr_oferta where ofe_est='on' AND ofe_publicada='on' AND ofe_date_fin>date(now()) order by ofe_update desc limit 0,15"); //$row=mysql_fetch_array($resultado);
?>
<item>
<title><? echo $datos["ofe_nombre"];?></title>
<link>
miweb/detalle.php?i=<?php echo $datos["ofe_id"];?></link>
<description>
<? echo substr($datos["ofe_desc"],0,2000)."";?></description>
</item>
<?
}
?>
</channel>
</rss>
Ahora el rss.xml
Código:
<?php header ('Content-type: text/xml; content="text/html; charset=iso-8859-1'); echo ("<?xml version="1.0" encoding="iso-8859-1"?>");
?>
<rss version="2.0">
<channel>
<title>Ofertas Laborales - Mipagina .: Desarrollando :.</title>
<link>web</link>
<description>Ofertas Laborales / Version RSS</description>
<language>es</language>
<image>
<title>Ofertas Laborales / Version RSS</title>n
<url>webg</url>
<link>web</link>
<description>Ofertas Laborales - Mipagina .: Desarrollando :.</description>
</image><?php
mysql_connect ("localhost", "user", "pass") or
die ("Cannot connect to database server.");
$resultado=mysql_query("SELECT * FROM pr_oferta where ofe_est='On' order by ofe_update desc limit 0,15"); ?>
<item>
<title><?php echo $datos["ofe_nombre"];?></title>
<description>
<?php echo substr($datos["ofe_desc"],0,300)."...";?></description>
<link>webl</link>
<pubDate></pubDate>
</item><?php
}
?>
</channel>
</rss>