I am attempting to create a C# class from the user.xsd file. I have tried using xsd.exe which is included with Visual Studio as well as Xsd2Code++.
I can not successfully create the user.cs file because validation of the .xsd file fails.
The error message is:
Error: Schema validation failed:
The 'name' attribute is not supported in this context.
I believe that it is talking about the name attribute in the xsd:complexContent tag that is within the getUserCard complexType that I have shown below. Is the name attribute necessary?
<xsd:complexType name="getUserCard">
<xsd:annotation>
<xsd:documentation xml:lang="en">
1. One of the webexId/email/personalUrl is a required input element.
2. There could be multiple avatar images on the server and size is used to choose the matching one from this set.
</xsd:documentation>
</xsd:annotation>
<xsd:complexContent name="IdTypeForUserCardQuery">
<xsd:extension base="serv:bodyContentType">
<xsd:sequence>
<xsd:choice>
<xsd:element name="webExId" type="xsd:string"/>
<xsd:element name="email" type="xsd:string"/>
<xsd:element name="personalUrl" type="xsd:string"/>
</xsd:choice>
<xsd:element name="size" type="xsd:integer" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>