Iam using BizTalk for the first time. I created a simple schema and simple XML document and tring to Validate the Instance. I am getting BEC2004 Error.
The Schema has The Employee Record with Name and ID attributes.
<?xml version="1.0" encoding="utf-16" ?>
- <xs:schema xmlns="http://ift.tt/1lAPLuK" xmlns:b="http://ift.tt/1fZwGQL /BizTalk/2003" targetNamespace="http://ift.tt/1lAPLuK" xmlns:xs="http://ift.tt/tphNwY">
- <xs:element name="Employee">
- <xs:complexType>
- <xs:sequence>
<xs:element name="Name" type="xs:string" />
<xs:element name="ID" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema
And I created a XML file with these fields alone
<?xml version="1.0" encoding="utf-8"?>
<Employee xmlns ="http://ift.tt/1lAPLuK">
<Name>Dhana</Name>
<ID>001</ID>
</Employee >
The XML itself shows a error as The "http://ift.tt/1lAPLuK" has not been declared.
If I validate the Instance I get error like
BEC2004 The element 'Employee' in namespace has invalid child element 'Name' in namespace 'http://ift.tt/1lAPLuK'. List of possible elements expected: 'Name'.
Can anybody help me.
Thanks
No comments:
Post a Comment