[quoted text, click to view] > "Schemer" <nowhere@man.com> wrote in message
> news:OM92v4nQIHA.1212@TK2MSFTNGP05.phx.gbl...
>> >xsd.exe /?
>> Microsoft (R) Xml Schemas/DataTypes support utility
>> [Microsoft (R) .NET Framework, Version 2.0.50727.42]
>> Copyright (C) Microsoft Corporation. All rights reserved
>>
>> When I try this command:
>> xsd /c /e:Transaction /l:cpp LargeSchema.xsd
>>
>> I get a number of "schema validation: warnings and "element is not
>> declared" warnings. Finally, processing stops with a "datatype xxx is
>> missing" error.
>>
>> LargeSchema.xsd opens and validates in XMLSpy. Is it possible the schema
>> is too complex for xsd.exe to handle? Are there any alternatives to
>> xsd.exe?
>>
>> Thanks for any suggestions.
>>
>>
>
> Most likely, there is another schema involved, and include schema, that
> has to be accounted for in the build.
>
> If the XSD is valid, then you should be able to pull all schemas involved
> into a project by using VS Project Add Existing Item, which will resolve
> or expose all problems with the XML schema.
>
> The one area that you can look it is the <namespace> tag, which indicates
> what namespace the XML is in and is using.
>
> XML.xsd that is not in the same <namespace> as the parent XSD can cause a
> missing element condition, along with the <include> XSD not being found
> period.
>
Thanks for the reply.
Here is the output in VisStudio 2005:
1>Error: There was an error processing
'..\..\..\WorkMIMB\WFS-T\schema\wfs\1.1.0\wfs.xsd'.
1> - Error generating code for DataSet ''.
1> - Unable to convert input xml file content to a DataSet. Type
'
http://www.opengis.net/ows:ServiceType' is not declared, or is not a simple
type.
1> - Type '
http://www.opengis.net/ows:ServiceType' is not declared, or is
not a simple type.
wfs.xsd contains, before ows:ServiceType is referred to, this line:
<xsd:import namespace="
http://www.opengis.net/ows" schemaLocation="../../ows/1.0.0/owsAll.xsd"/>
owsAll.xsd contains
<include schemaLocation="owsGetCapabilities.xsd"/>
which contains
<simpleType name="ServiceType">
Here is a snippet of wfs.xsd:
<xsd:import namespace="
http://www.opengis.net/ows" schemaLocation="../../ows/1.0.0/owsAll.xsd"/>
<!-- ================================================================== -->
<!-- = BASE REQUEST TYPE = -->
<!-- ================================================================== -->
<xsd:complexType name="BaseRequestType" abstract="true">
It appears the error is occurring with BaseRequestType, yet ows:ServiceType
should be recognized at that point.
Thanks for any insight into what is going wrong...
(As I mentioned, XMLSpy says this is valid, as does LiquidXML.)