Foros del Web » Programando para Internet » PHP »

PHP y XML

Estas en el tema de PHP y XML en el foro de PHP en Foros del Web. Hola a todos Tengo un problema con el feed de mi blog que no logro solucionar Este es el error que me pone en el ...
  #1 (permalink)  
Antiguo 01/02/2011, 11:19
 
Fecha de Ingreso: febrero-2011
Mensajes: 3
Antigüedad: 13 años, 2 meses
Puntos: 0
PHP y XML

Hola a todos
Tengo un problema con el feed de mi blog que no logro solucionar
Este es el error que me pone en el feed

Cita:
Error de lectura XML: contenido incorrecto tras un elemento XML del documento
Ubicación: http://jaimeburque.com/blog/?feed=rss2
Número de línea 20, columna 1:<?xml version="1.0" encoding="UTF-8"?>
Y este es lo que me dice el FeedValidator

It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.
Source: http://jaimeburque.com/blog/?feed=rss2

Código HTML:
  1.
   2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   3. <html xmlns="http://www.w3.org/1999/xhtml">
   4. <head>
   5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   6. <title>Documento sin t&iacute;tulo</title>
   7. </head>
   8.  
   9. <body><script type="text/javascript">
  10. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  11. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  12. </script>
  13. <script type="text/javascript">
  14. try {
  15. var pageTracker = _gat._getTracker("UA-8455222-2");
  16. pageTracker._trackPageview();
  17. } catch(err) {}</script>
  18. </body>
  19. </html>
  20.  
  21.  
  22. <rss version="2.0"
  23. xmlns:content="http://purl.org/rss/1.0/modules/content/"
  24. xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  25. xmlns:dc="http://purl.org/dc/elements/1.1/"
  26. xmlns:atom="http://www.w3.org/2005/Atom"
  27. xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  28. > 


Muchas gracias
  #2 (permalink)  
Antiguo 01/02/2011, 11:21
Avatar de pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: PHP y XML

Cita:
It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.
pero si el error dice exactamente lo que es!!

¿que no sabes leer?

un feed RSS no debe tener ni doctype, ni head, ni nada relacionado a un documento de HTML... no son ni parecidos, ni nada por el estilo...

deberías leer un poco de la especificación de dicho XML antes de continuar...
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.
  #3 (permalink)  
Antiguo 01/02/2011, 11:31
 
Fecha de Ingreso: febrero-2011
Mensajes: 3
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: PHP y XML

Muchas gracias Pateketrueke,
Aprendiendo a leer estas cosas que ando..poco a poco
Ahora la siguiente pregunta desde mi ignorancia...que tengo que tocar para cambiar el feed RSS?...tengo que ir al wp-includes?..

Un saludo
  #4 (permalink)  
Antiguo 01/02/2011, 11:35
Avatar de pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: PHP y XML

bueno, no tengo idea de donde tengas dicho script... así que solo tu sabrás!

sin embargo, te reitero que deberías investigar dicho formato antes de meter mano...
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.

Etiquetas: xml
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 07:45.