Having trouble using xsd.exe to generate c# classes from schemabelow. I try xsd /c oai_dc.xsd and get schema validationerrors, i.e. element is not declared. I have also triedspecifying namespace and/or uri but not successful. This seemslike a relatively straightforward thing, is there a simplesolution here?
J:\Inetpub\nvodev\VOREGI~1>type oai_dc.xsd
<schematargetNamespace="http://www.openarchives.org/OAI/2.0/oai_dc/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"attributeFormDefault ="unqualified">
<annotation>
<documentation>
XML Schema 2002-03-18 by Pete Johnston.
Adjusted for usage in the OAI-PMH.
Schema imports the Dublin Core elements from the DCMIschema for unqualifi
ed Dublin Core.
2002-12-19 updated to use simpledc20021212.xsd (instead ofsimpledc2002031
2.xsd)
</documentation>
</annotation>
<import namespace="http://purl.org/dc/elements/1.1/"
schemaLocation="http://dublincore.org/schemas/xmls/simpledc20021212.xsd"
/>
<element name="dc" type="oai_dc:oai_dcType"/>
<complexType name="oai_dcType">
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="dc:title"/>
<element ref="dc:creator"/>
<element ref="dc:subject"/>
<element ref="dc:description"/>
<element ref="dc:publisher"/>
<element ref="dc:contributor"/>
<element ref="dc:date"/>
<element ref="dc:type"/>
<element ref="dc:format"/>
<element ref="dc:identifier"/>
<element ref="dc:source"/>
<element ref="dc:language"/>
<element ref="dc:relation"/>
<element ref="dc:coverage"/>
<element ref="dc:rights"/>
</choice>
</complexType>
</schema>
--------------------------------
From: Gretchen Greene
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>B5CnJYv31kyb8Awqo3K5Yw==</Id>