A Practical Guide to SharePoint 2013

A Practical Guide to SharePoint 2013
A Practical Guide to SharePoint 2013 - Book by Saifullah Shafiq

Wednesday, November 23, 2011

The element comment is used but not declared in the DTD Schema

When you try to open the browser-enabled form from the library, instead of opening the form, it asks you to select the xml form from the storing location to connect to. You think selecting the form will work, so you go ahead and select the published form from your hard disk but then you see the following error:

InfoPath cannot open a new form.
The form contains schema validation errors.

The element ‘comment’ is used but not declared in the DTD/Schema.



The form should be published to the SharePoint library. After you have published the form, make sure you select the correct content type to load the form.



1. You have different options when publishing browser-enabled InfoPath form. Make sure you select “SharePoint Library” when publishing it.
2. By default when you click New button, the default content type is selected. To open your browser-enabled form, make sure you click the arrow with the new button and select the right content type.




3. You can change default content type and even remove it if you want. Go to library settings. Under “Library Tools” select “Library” tab and then select “Library Settings”.




4. Under “Content Types”, select “Change new button order and default content type” link. Here you can change the order and make your browser form default. To delete content type, click it and then delete it.



1 comment: