specifying DTD in xml document

Hi,
I have to create an xml schema from an existing xml document.
I know the procedure of creating an xml schema.
But by xml document doesnt have a dtd tag in it.
sample Xml code in my file is as below:

<?xml version="1.0"?>

<doctype

00
success
The service has executed sucessfully


how to enclose a dtd?
the xml schema can be created from an xml document , proveded the xml document ponts to a valid dtd.
how to have a dtd to solve my problem?

Can anyone plz respond to this at the earliest

Thanks,
Chowdari

Hi Chowdari

You can use xml spy to create schema from xml file.

Gajanand

Hi Chowdari

you can include dtd in your xml file via :

PFA a sample xml and dtd file for reference.

Filename : Request.xml

<?xml version="1.0" encoding="UTF-8"?> gggg

Filename: Request.dtd

For more information on dtd/schemas refer : http://www.w3schools.com/dtd/

Regards,
Puneet Saxena

Thanks Puneet for the detailed explanation