Tema: HTML y XML
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/11/2012, 10:49
opzina
 
Fecha de Ingreso: marzo-2008
Mensajes: 1.020
Antigüedad: 16 años, 2 meses
Puntos: 21
HTML y XML

No se bien dónde va este post, favor de re-ubicar en el foro en caso de ser necesario.
-----

¿Es válido poner mucho contenido html dentro de una etiqueta xml?

Ejemplo:

Código XML:
Ver original
  1. <content>
  2. cdata--
  3. <!--
  4. Contenido en formato HTML
  5. Muchos párrafos, imágenes, videos..
  6. -->
  7.  
  8.  
  9. </content>

o es óptimo crear etiquetas en xml para cada cosa:

Código XML:
Ver original
  1. <entry>
  2. <title>Title here</title>
  3. <description>Desc here</description>
  4. <created></created>
  5. <updated></updated>
  6. <content>
  7. <parrafo>Este es un parrafo</parrafo>
  8. <parrafo>Este es un parrafo</parrafo>
  9. <image>
  10. <url></url>
  11. <title></title>
  12. <link></link>
  13. <height></height>
  14. <width></width>
  15. </image>
  16.  
  17. <parrafo>Este es un parrafo</parrafo>
  18. <parrafo>Este es un parrafo</parrafo></content>
  19. <video>
  20. <url></url>
  21. <title></title>
  22. <link></link>
  23. <time></time>
  24. </video>
  25. </entry>
__________________
_