When there is no schema associated with an XML document, Oxygen XML Editor can learn
the document structure by parsing the document internally. This feature is enabled with
the option Learn on
open document that is available in the user preferences.
To create a DTD from the learned structure:
-
Open the XML document for which a DTD will be created.
-
Go to (Ctrl + Shift
+ L (Command + Shift + L on OS X)).
The Learn Structure action reads the mark-up structure of
the current document. The Learn completed message is displayed in
the application's status bar when the action is finished.
-
Go to (Ctrl + Shift
+ S (Command + Shift + S on OS X)) and
enter the DTD file path.
-
Press the Save button.