I have written one XML, but in that XMLon very first line I am getting an error
The markup declarations contained or pointed to by the document type
When you create a dtd it always contains the lines
Simply remove the first and last line declaring the DTD data, since those are only to be used when having the DTD within your XML file.