XML Error - Content of element type "root" must match "(url)"
Hello,
I have wrote a PHP script that writes a sitemap so that it can be dynamically updated when a user changes the website layout. Below is the xml structure that i cannot see any problems with but i cannot get it validated.
The error that comes up is:
Content of element type "root" must match "(url)".
Here is the xml code,
<?xml version="1.0" ?>
<!DOCTYPE root [
<!ELEMENT root (url)>
<!ELEMENT url (#PCDATA)>
]>
<root>
<url>http://whatever.co.uk/</url>
<url>http://whatever.co.uk/about/</url>
<url>http://whatever.co.uk/contact/</url>
<url>http://whatever.co.uk/services/</url>
<url>http://whatever.co.uk/</url>
<url>http://whatever.co.uk/</url>
<url>http://whatever.co.uk/test3/</url>
<url>http://whatever.co.uk/</url>
<url>http://whatever.co.uk/my-name/</url>
<url>http://whatever.co.uk/test5/</url>
</root>
Can anyone help me here?
Thanks a lot everyone.
Eddie