I'm currently working on some XML imports for a client and I am having some troubles with mapping these to my domain model with associations. For example my Vendors have an associated Country, I can't however seem to create an XSD mapping that makes this possible. My XML file looks as follows: <Vendors> <VendorNo>S10009</VendorNo> <Name>LONG WAY ENTERPRISE CO., LTD.</Name> <SearchName>LONGWAY</SearchName> <Address>No.4 Lane 232 Pao Chiao Road</Address> <City>TAIPEI</City> <County>HSIN-TIEN</County> <E-Mail>bla@bla.tw</E-Mail> <PrimContactNo>R20478</PrimContactNo> </Vendors> I would like to map this to my domain model which is a Vendor entity with attributes vendorno/name/searchname/etc. with a many to one association to Country How would i set up such a XSD file? Currently I have: <xs:schema id="RevitVendor" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="RevitVendor" msdata:isdataset="true" msdata:usecurrentlocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Vendors"> <xs:complexType> <xs:sequence> <xs:element name="VendorNo" type="xs:string" minOccurs="0" /> <xs:element name="Name" type="xs:string" minOccurs="0" /> <xs:element name="SearchName" type="xs:string" minOccurs="0" /> <xs:element name="Address" type="xs:string" minOccurs="0" /> <xs:element name="City" type="xs:string" minOccurs="0" /> <xs:element name="County" type="xs:string" minOccurs="0" /> <xs:element name="E-Mail" type="xs:string" minOccurs="0" /> <xs:element name="PrimContactNo" type="xs:string" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema>