Im en utilisant XML pour afficher les nouvelles sur un site, mais ne peut obtenir un espace entre les articles, si vous pourriez nous aider ce serait super. Voici ce que im en utilisant
HTML
<html>
<head>
<style>
#posthead {background-color:navy; color: white; text-align: center; border: 2px solid black;}
#postbody {background-color:none; color: black; text-align: left ; border: 1px solid black; border-top: 0px solid black;}
</style>
</head>
<body>
<xml
src="news.xml"
id="xmldso"
async="false">
</xml>
<table datasrc="#xmldso" width="525" border="0" cell-spacing="0" cell-padding="0">
<tr>
<td id="posthead"><span datafld="TITLE"></span></td>
</tr>
<tr>
<td id="postbody"><span datafld="POST"></span></td>
</tr>
</table>
</body>
</html>
- <html>
- <head>
- <style>
- #posthead {background-color:navy; color: white; text-align: center; border: 2px solid black;}
- #postbody {background-color:none; color: black; text-align: left ; border: 1px solid black; border-top: 0px solid black;}
- </style>
- </head>
- <body>
- <xml
- src="news.xml"
- id="xmldso"
- async="false">
- </xml>
- <table datasrc="#xmldso" width="525" border="0" cell-spacing="0" cell-padding="0">
- <tr>
- <td id="posthead"><span datafld="TITLE"></span></td>
- </tr>
- <tr>
- <td id="postbody"><span datafld="POST"></span></td>
- </tr>
- </table>
- </body>
- </html>
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited with XML Spy v4.2 -->
<CATALOG>
<NEWS>
<TITLE>Article Name</TITLE>
<POST>Article Body</POST>
</NEWS>
<NEWS>
<TITLE>Article Name 2</TITLE>
<POST>Article Body 2</POST>
</NEWS>
</CATALOG>
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!-- Edited with XML Spy v4.2 -->
- <CATALOG>
- <NEWS>
- <TITLE>Article Name</TITLE>
- <POST>Article Body</POST>
- </NEWS>
-
- <NEWS>
- <TITLE>Article Name 2</TITLE>
- <POST>Article Body 2</POST>
- </NEWS>
- </CATALOG>
J'ai besoin d'un espace BETWEN chaque tableau comme <* br / *>, mais cela ne marchera pas pour moi
