Type is not returned for "UserRole", but only "Cred"
-->
<xs:element name="type" type="xs:int" minOccurs="0" maxOccurs="1" />
+ <!-- Add a Tag, so you know WHICH Entity matches in DB -->
+ <xs:element name="tag" type="xs:string" minOccurs="0" maxOccurs="1" />
</xs:sequence>
</xs:complexType>
</xs:element>