When working with documents that do not specify a schema, or the schema is not known or does not exist, Oxygen XML Author Eclipse plugin can learn the document structure by parsing the document internally to provide an initialization source for content completion and document validation.
This feature is controlled by the Learn on open document option that is available in the preferences page. This feature enabled by default. If you want to disable it, deselect the Learn on open document option.
You can choose to create a DTD from the learned structure and save it as a file using the Learn Structure and Save Structure actions.