No type definition was foundhttp://forums.asp.net/t/1061746.aspx/1?No+type+definition+was+foundWed, 10 Jan 2007 07:50:17 -050010617461525859http://forums.asp.net/p/1061746/1525859.aspx/1?No+type+definition+was+foundNo type definition was found <p>I have a XML file which gives the following error in XMLSpy: Could not validate element 'ik_om_cor:bpm_cancel_order_om'. No type definition was found.</p> <p>The XML looks like this:</p> <p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br> &lt;clientsystems xmlns=&quot;http://schemaserver/schemas/1.0/&quot; xmlns:ik_om_cor=&quot;http://schemaserver/schemas/1.0/ik_om_cor&quot; xmlns:ik_dmt=&quot;http://schemaserver/schemas/1.0/ik_dmt&quot; xmlns:ik_om_dmt=&quot;http://schemaserver/schemas/1.0/ik_om_dmt&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://schemaserver/schemas/1.0/ http://schemaserver/schemas/1.0/schema-cs-commercial_services.xsd&quot; schemaVersion=&quot;1.0&quot;&gt;<br> &nbsp;&nbsp; &nbsp;&lt;control_area&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;message_type&gt;BPM_CANCEL_ORDER_OM&lt;/message_type&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;source&gt;GAM&lt;/source&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;source_send_date&gt;2004-01-14T12:54:00&lt;/source_send_date&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;user_name&gt;Danny&lt;/user_name&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;message_id&gt;1234567&lt;/message_id&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;correlation_id&gt;GAM_CID_28503&lt;/correlation_id&gt;<br> &nbsp;&nbsp; &nbsp;&lt;/control_area&gt;<br> &nbsp;&nbsp; &nbsp;&lt;data_area&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;ik_om_cor:bpm_cancel_order_om&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_cor:version_number&gt;String&lt;/ik_om_cor:version_number&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_cor:cancel_request&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:email_addres_confirmation&gt;.@aa.a&lt;/ik_om_dmt:email_addres_confirmation&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:order_nr&gt;1000000000&lt;/ik_om_dmt:order_nr&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:request_date_time&gt;2000-01-01T00:00:00x0Z&lt;/ik_om_dmt:request_date_time&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:bank_account&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:bankaccount_nr&gt;0&lt;/ik_om_dmt:bankaccount_nr&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:bankaccount_type&gt;B&lt;/ik_om_dmt:bankaccount_type&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:bankaccountholder_city&gt;String&lt;/ik_om_dmt:bankaccountholder_city&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:bankaccountholder_name&gt;String&lt;/ik_om_dmt:bankaccountholder_name&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/ik_om_dmt:bank_account&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/ik_om_cor:cancel_request&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_cor:maintenance_node&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_dmt:message_timestamp&gt;2000-01-01T00:00:00x000Z&lt;/ik_dmt:message_timestamp&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_dmt:order_nr&gt;1000000000&lt;/ik_dmt:order_nr&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/ik_om_cor:maintenance_node&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;/ik_om_cor:bpm_cancel_order_om&gt;<br> &nbsp;&nbsp; &nbsp;&lt;/data_area&gt;<br> &lt;/clientsystems&gt;</p> <p>&nbsp;</p> <p>The schemas for this XML file look like this:</p> <p>&nbsp;schema-cs-commercial_services.xsd: </p> <p>&nbsp;&lt;schema xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:cs=&quot;http://schemaserver/schemas/1.0/&quot; targetNamespace=&quot;http://schemaserver/schemas/1.0/&quot; elementFormDefault=&quot;qualified&quot; attributeFormDefault=&quot;unqualified&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &lt;include schemaLocation=&quot;http://schemaserver/schemas/1.0/schema-cs-control_area.xsd&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &lt;include schemaLocation=&quot;http://schemaserver/schemas/1.0/schema-cs-data_area.xsd&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &lt;include schemaLocation=&quot;http://schemaserver/schemas/1.0/schema-cs-error_area.xsd&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &lt;include schemaLocation=&quot;http://schemaserver/schemas/1.0/schema-cs-attachment_area.xsd&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &lt;!-- klantsystemen --&gt;<br> &nbsp;&nbsp;&nbsp; &lt;element name=&quot;clientsystems&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;annotation&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;documentation&gt;Schemaset version 1.0.16.1&lt;/documentation&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/annotation&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;complexType&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;sequence&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;element ref=&quot;cs:control_area&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;element ref=&quot;cs:data_area&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;element ref=&quot;cs:error_area&quot; minOccurs=&quot;0&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;element ref=&quot;cs:attachment_area&quot; minOccurs=&quot;0&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/sequence&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;attribute name=&quot;schemaVersion&quot; type=&quot;string&quot; default=&quot;1.0&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/complexType&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/element&gt;<br> &lt;/schema&gt;</p> <p>schema-cs-data_area.xsd:</p> <p>&lt;schema xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:ik_om_cor=&quot;http://schemaserver/schemas/1.0/ik_om_cor&quot; xmlns:ik_om_coa=&quot;http://schemaserver/schemas/1.0/ik_om_coa&quot; targetNamespace=&quot;http://schemaserver/schemas/1.0/&quot; elementFormDefault=&quot;qualified&quot; attributeFormDefault=&quot;unqualified&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &lt;import namespace=&quot;http://schemaserver/schemas/1.0/ik_om_cor&quot; schemaLocation=&quot;bpm_cancel_order_om.xsd&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &lt;import namespace=&quot;http://schemaserver/schemas/1.0/ik_om_coa&quot; schemaLocation=&quot;bpm_cancel_order_om_answer.xsd&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &lt;!-- data_area--&gt;<br> &nbsp;&nbsp;&nbsp; &lt;element name=&quot;data_area&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;complexType&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;choice minOccurs=&quot;0&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;element ref=&quot;ik_om_cor:bpm_cancel_order_om&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;element ref=&quot;ik_om_coa:bpm_cancel_order_om_answer&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/choice&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/complexType&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/element&gt;<br> &lt;/schema&gt;</p> <p>bpm_cancel_order_om.xsd:</p> <p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br> &lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:ik_om_cor=&quot;http://schemaserver/schemas/1.0/ik_om_cor&quot; xmlns:ik_om_dmt=&quot;http://schemaserver/schemas/1.0/ik_om_dmt&quot; xmlns:ik_dmt=&quot;http://schemaserver/schemas/1.0/ik_dmt&quot; targetNamespace=&quot;http://schemaserver/schemas/1.0/ik_om_cor&quot; elementFormDefault=&quot;qualified&quot; attributeFormDefault=&quot;qualified&quot; version=&quot;1.0&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &lt;xs:import namespace=&quot;http://schemaserver/schemas/1.0/ik_dmt&quot; schemaLocation=&quot;INET_DOMAIN_TYPES.xsd&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &lt;xs:import namespace=&quot;http://schemaserver/schemas/1.0/ik_om_dmt&quot; schemaLocation=&quot;bpm_domain_types_om.xsd&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &lt;xs:element name=&quot;bpm_cancel_order_om&quot; type=&quot;ik_om_cor:bpm_cancel_order_om&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &lt;xs:complexType name=&quot;bpm_cancel_order_om&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xs:element name=&quot;version_number&quot; type=&quot;ik_dmt:Version_Number&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/xs:element&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xs:element name=&quot;cancel_request&quot; type=&quot;ik_om_dmt:Cancel_Request&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xs:element name=&quot;maintenance_node&quot; type=&quot;ik_dmt:Maintenance_Node&quot;/&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;<br> &lt;/xs:schema&gt;<br> &nbsp;</p> <p>When I make an XML with data_area as root node, it validates ok. When I have clientsystems as root node, it does not. The following XML validates fine:</p> <p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br> &lt;data_area xmlns=&quot;http://schemaserver/schemas/1.0/&quot; xmlns:ik_om_coa=&quot;http://schemaserver/schemas/1.0/ik_om_coa&quot; xmlns:ik_om_cor=&quot;http://schemaserver/schemas/1.0/ik_om_cor&quot; xmlns:ik_dmt=&quot;http://schemaserver/schemas/1.0/ik_dmt&quot; xmlns:ik_om_dmt=&quot;http://schemaserver/schemas/1.0/ik_om_dmt&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://schemaserver/schemas/1.0/<br> http://schemaserver/schemas/1.0/schema-cs-data_area.xsd&quot;&gt;<br> &nbsp;&nbsp;&nbsp; &lt;ik_om_cor:bpm_cancel_order_om&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_cor:version_number&gt;String&lt;/ik_om_cor:version_number&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_cor:cancel_request&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:email_addres_confirmation&gt;.@aa.a&lt;/ik_om_dmt:email_addres_confirmation&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:order_nr&gt;1000000000&lt;/ik_om_dmt:order_nr&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:request_date_time&gt;2000-01-01T00:00:00x0Z&lt;/ik_om_dmt:request_date_time&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:bank_account&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:bankaccount_nr&gt;0&lt;/ik_om_dmt:bankaccount_nr&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:bankaccount_type&gt;B&lt;/ik_om_dmt:bankaccount_type&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:bankaccountholder_city&gt;String&lt;/ik_om_dmt:bankaccountholder_city&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_dmt:bankaccountholder_name&gt;String&lt;/ik_om_dmt:bankaccountholder_name&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/ik_om_dmt:bank_account&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/ik_om_cor:cancel_request&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_om_cor:maintenance_node&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_dmt:message_timestamp&gt;2000-01-01T00:00:00x000Z&lt;/ik_dmt:message_timestamp&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ik_dmt:order_nr&gt;1000000000&lt;/ik_dmt:order_nr&gt;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/ik_om_cor:maintenance_node&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/ik_om_cor:bpm_cancel_order_om&gt;<br> &lt;/data_area&gt;<br> &nbsp;</p> <p>&nbsp;</p> <p>Can anyone tell me what's the problem here?</p> <p>Greets,</p> <p>Nils Gruson&nbsp;</p> 2007-01-10T07:50:17-05:00