
February 21st, 2001, 02:01 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
DTD/Schema not defined for the root element.
<i><b>Originally posted by : Rajesh.D (dasarirajesh@yahoo.com)</b></i><br /><br />1.We have created a Schema using Biztalk editor and stored to webdev.<br />2.Using create xml instance(from tool menu in biztalk editor) we have created the xml file for the above schema.<br />3.We have used the above schema as inbound and outbound document in a channel which is linked to some port.<br />4.Using polling receive function of biztalk we are polling for the above xml file in a folder. This receive function is linked to the above channel.<br /><br />Schema created is pasted below<br />-------------------------------<br /><br /><br /><?xml version="1.0"?><br /><!-- Generated using Microsoft BizTalk Editor on Tue, Feb 20 2001 03:14:57 PM --><br /><!-- Microsoft Corporation (c) 2000 (http://www.microsoft.com) --><br /><Schema name="Demo" b:BizTalkServerEditorTool_Version="1.0" b:root_reference="Demo" <br />b:standard="XML" <br />xmlns="urn:schemas-microsoft-com:xml-data" <br />xmlns:b="urn:schemas-microsoft-com:BizTalkServer" <br />xmlns:d="urn:schemas-microsoft-com:datatypes"><br /><br /><b:SelectionFields/><br /><ElementType name="Message" content="empty" model="closed"><br /><b:RecordInfo/><br /><AttributeType name="MessageID" d:type="string" d:maxLength="50"><br /><b:FieldInfo/></AttributeType><br /><attribute type="MessageID" required="no"/><br /></ElementType><ElementType name="Email" content="empty" model="closed"><br /><b:RecordInfo/><br /><AttributeType name="EmailID" d:type="string" d:maxLength="30" d:minLength="2"><br /><b:FieldInfo/></AttributeType><br /><attribute type="EmailID" required="no"/><br /></ElementType><ElementType name="Demo" content="eltOnly" model="open"><br /><b:RecordInfo/><br /><element type="Email" maxOccurs="1" minOccurs="0"/><br /><element type="Message" maxOccurs="1" minOccurs="0"/><br /></ElementType></Schema><br /><br />---------------------------------<br /><br /><br />The xml file for the above schema<br />---------------------------------<br /><br /><Demo><br /><Email EmailID="draj"/><br /><Message MessageID="Good morning"/><br /></Demo><br /><br />Problem:<br />---------<br />When the polling function works. It is generating an error saying DTD/Schema not defined for the root element.<br /><br />Note:<br />-----<br />When we changed the xml file as below, It is working fine. Here we have defined the schema path in the root element of xml file. But as per our understanding it should take schema path from the inbound and outbound document specified in channel. <br /><br /><Demo xmlns="x-schema:http://localhost/biztalkserverrepository/docspecs/demo/mail1.xml"><br /><Email EmailID="draj"/><br /><Message MessageID="Good morning"/><br /></Demo><br /><br /><br />Any reply to this is highly appreciated<br />Thanks in advance<br />Rajesh
|