How do I put in a DTD

This should cover W3C XML Schema, Relax NG and DTD related problems.
Tim123
Posts: 1
Joined: Thu Mar 11, 2010 6:53 pm

How do I put in a DTD

Post 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?
adrian
Posts: 2854
Joined: Tue May 17, 2005 4:01 pm

Re: How do I put in a DTD

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply