Import error: Content of element type must match

This error occurs when the file contains elements that are not allowed in your configuration.

Description

You receive a message in the Import Errors dialog similar to this:

Unable to import dita file: The content of element type "elementName" must match " (keyword|varname|parmname|...)".

Solution

There are two options to resolve the issue:

  • Edit the document type definition (DTD) for the document type so that the list of allowed elements for "elementName" includes the element in the file.
  • Edit the file that you are trying to import so that it no longer has the element.