Im using XML to display news on a site, but cant get a space between articles, If you could help it would be great. here is what im using
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>
I need a space betwen each table like the <*br /*> but that wont work for me
