Issue
The issue you might have when performing an extensive HTML modification on the Nintex Form On-Prem (like colors and fonts and possible CSS addition with JavaScript Tabs), you might get this error upon publishing Nintex Form:"Request Error" (XHTML DTD Pop-Up). see the error message as per the screen shot below:


Resolution
To fix this issue:
1- Open the Nintex Form in the Nintex Form Designer.
2- Click on the "Export" button on the ribbon menu and export the Form as Form.XML file on the local drive.
3- Now, click on the "Delete" to delete the Form. Please note that any data or items on List that was added to the SharePoint list will "not" be deleted, as the list items are saved on the SharePoint List, which mean on the SharePoint content DB.
4- After you deleted the Nintex Form, now click on "Import" the same Form.XML from your local drive and attempt to Publish the Form again. That should work.
1- Open the Nintex Form in the Nintex Form Designer.
2- Click on the "Export" button on the ribbon menu and export the Form as Form.XML file on the local drive.
3- Now, click on the "Delete" to delete the Form. Please note that any data or items on List that was added to the SharePoint list will "not" be deleted, as the list items are saved on the SharePoint List, which mean on the SharePoint content DB.
4- After you deleted the Nintex Form, now click on "Import" the same Form.XML from your local drive and attempt to Publish the Form again. That should work.
Error Code
see the HTML error message on the screenshot