IntelliJ IDEA 2017.2 Help

Generating DTD

A Data Type Definition (DTD) is required for running structure validation checks on a Web content file. IntelliJ IDEA can scan any XML file for the existing elements and attributes and generate a DTD for it.

To generate a DTD for an XML file

  1. Open the desired file in the active editor tab.
  2. On the main menu, choose Tools | XML Actions | Generate DTD From XML File. The resulting DTD is added as a section above the first line of the file.
Last modified: 29 November 2017

See Also

Language and Framework-Specific Guidelines: