View Full Version : Is this code correct ?

02-23-2010, 10:58 AM
have this code for my newsticker, is this correct because it says there is an error with having two body tags on the same page, not sureif this is correct, can anyone help ?

<?xml version="1.0" encoding="utf-8"?>
<date> LATEST NEWS: </date>
<header>Updated Wednesday 17th February </header>
<body>The Euston Fishing Club Website Finally Ready to Go !..........</body>
<link>place your link here</link>
<date>NEW EVENT ARRANGED:</date>
<body>Trip to Portpatrick (near Stranraer) for Wreck Fishing..(subject to interest)......19th - 21st May 2010</body>
<link>place your link here</link>

02-23-2010, 11:14 AM
I wouldn't recommend two body tags!

02-23-2010, 05:51 PM
This is not a HTML document, it's an XML document.
You cannot validate a XML document as if it was HTML.

The XML file looks just fine, no errors.