Page 1 of 1

How do I put in a DTD

Posted: Thu Mar 11, 2010 8:41 pm
by Tim123
I'm completely new to Oxygen and want to put in a DTD. WHat do I do and what form should the DTD be in?

Re: How do I put in a DTD

Posted: Fri Mar 12, 2010 11:05 am
by adrian
Hello,

If you don't have a DTD but want one for your current XML document, you can generate it from Document -> Schema -> Generate/Convert Schema, select XML 1.0 DTD and an appropriate name will be chosen for the output file. Adjust the output if needed and press Convert. Then you can proceed to associate the DTD as mentioned below.

If you already have a DTD and want to associate the current XML Document with it then you have to go to Document -> Schema -> Associate Schema, choose the DTD tab and browse for the DTD or simply paste the DTD URL location(e.g. http://www.docbook.org/xml/4.4/docbookx.dtd) and press OK.

Let me know if you need further help or information.

Regards,
Adrian