I am trying to convert Component schema definition files int to C# class files using XSD.EXE for using Tridion core services. But when I create the XSD file in VS2011.Net using component schema i am getting below error.(Here i used to used .Net just create the XSD file with schema value)
The http://www.w3.org/2001/XMLSchema:Schema
element is not supported in this context.
Here is my sample xsd file
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="AccessRoles"
targetNamespace="http://tempuri.org/AccessRoles.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/AccessRoles.xsd"
xmlns:mstns="http://tempuri.org/AccessRoles.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsd:schema xmlns:tcmi="http://www.tridion.com/ContentManager/5.0/Instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:import namespace="http://www.tridion.com/ContentManager/5.0/Instance"></xsd:import>
<xsd:annotation>
<xsd:appinfo>
<tcm:Labels xmlns:tcm="http://www.tridion.com/ContentManager/5.0">
<tcm:Label ElementName="group" Metadata="false">Group Name</tcm:Label>
</tcm:Labels>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType name="AccessRoles">
<xsd:sequence>
<xsd:element name="group" minOccurs="0" maxOccurs="unbounded" type="xsd:normalizedString">
<xsd:annotation>
<xsd:appinfo>
<tcm:CustomURL xmlns:tcm="http://www.tridion.com/ContentManager/5.0">/ebpcustompages/security/content-security-assoc.asp?fieldreadonly=true&fldValues=%fieldValue%&pubID=%publicationURI%</tcm:CustomURL>
<tcm:ExtensionXml xmlns:tcm="http://www.tridion.com/ContentManager/5.0"></tcm:ExtensionXml>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</xs:schema>
Could any one help what wrong i am doing. or Any other alternative to convert schema defition files to C# class files.