In my soapui xml, following are the first 2 lines (with whitespace added for legibility).
<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project name="Project_sample"
resourceRoot="${projectDir}"
soapui-version="3.6.1"
abortOnError="false"
runType="SEQUENTIAL"
defaultScriptLanguage="Groovy"
xmlns:con="http://eviware.com/soapui/config">
<con:settings>
<con:setting id = "com.eviware.soapui.impl.wsdl.actions.iface.tools.soapui.TestRunnerAction@values-local"
><![CDATA[<xml-fragment
xmlns:con="http://eviware.com/soapui/config">
......................
....................... goes on
I have already checked the following urls
No grammar constraints (DTD or XML schema) detected for the document
No grammar constraints (DTD or XML schema) detected for the document
No grammar constraints (DTD or XML schema) detected for the document in a taglib file
How to fix Eclipse validation error "No grammar constraints detected for the document"?
But I dont like to modify configurations in Eclipse (such as Windows->pref->xml->validation->Grammar->Ignore
I would like to edit the xml config – probably in the above 2 lines. Is it possible to remove this warning?
After a bit of googling, it seems like there is no Schema file for those soapui config files.
I understand that you merely want to get rid of the Eclipse warning but without modifying any Eclipse settings. Well, here’s a hack:
Change your XML header to this:
This “micro doctype” does not do any validation but stops Eclipse from saying there is no schema.