Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/05/2010, 12:04
corretodo
 
Fecha de Ingreso: agosto-2009
Mensajes: 193
Antigüedad: 14 años, 9 meses
Puntos: 0
Respuesta: Como puedo separar por temas un xml.

Me refiero a que he probado con internet explorer con safari y con firefox y cuando he hecho el archivo xml a mano con las etiquetas que tu me has comentado me da error del fichero xml, por eso he pensado que no admite esas etiquetas.

A lo mejor esas etiquetas han de ir en otro fichero con otra extension distinta y que tambien puedan ser leidos por los navegadores.

Todo esto son conjeturas porque la verdad no tengo ni idea de ficheros xml.

He montado en la pagina que gestiono un canal de noticias y ahora las tengo todas juntas y me gustaria que aparecieran por temas.

Si las separo por categorias, Internet explores las puede gestionar por categorias pero ni firefox ni safari admiten categorias.

Asi que por categorias tampoco puedo porque no me las separa.

No tendras un ejemplo para ver como he de hacerlo.

Mi codigo esta basado en este ejemplo

------------------------------------------------------
<?xml version="1.0" ?>
<rss version="2.0">

<channel>

<title>All Gadgets Reviewed</title>
<description>If it's a gadget, we review it. Learn what gadgets are hot and what's not!</description>
<link>http://allgadgetsreviewed.com</link>

<item>
<title>Nokia 3650 Combines Phone And Photos</title>
<description>I've been playing with the new Nokia 3650. Finally, someone has got the combination of a cell phone with digital camera capabilities right!</description>
<link>http://allgadgetsreviewed.com/nokia3650.html</link>
</item>

<item>
<title>Sanyo Tablet PC Amazes!</title>
<description>I was dubious about the new Tablet PCs, but then I saw the latest from Sanyo. Wow, cool looks and it works!</description>
<link>http://allgadgetsreviewed.com/sanyotablet.html</link>
</item>

<item>
<title>Canon MegaTiny Digital Camera Too Small</title>
<description>OK, there is a limit to just how small is too small. Canon's MetaTiny, no larger than a quarter, simply is too little to use properly</description>
<link>http://allgadgetsreviewed.com/metatiny.html</link>
</item>

</channel>

</rss>
-----------------------------------------------------

Saludos y gracias por tu amabilidad.

Última edición por corretodo; 10/05/2010 a las 13:28