、C#のファイルを生成するために、Xsd.exeではを使用して、エラーを取得し、警告:これは私が実行しているコマンドです
xsd.exe -c -l:c# D:\Documents\DEV\SARPilot\Docs\schemas\06-141r2\06-141r2.xsd
これらは私が取得していますエラーです:XSD
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 2.0.50727.3038]
Copyright (C) Microsoft Corporation. All rights reserved.
Schema validation warning: Undefined complexType 'http://www.opengis.net/sps/0:ParameterDescriptorType' is used as a base for comp
lex type extension. Line 617, position 2.
Schema validation warning: Undefined complexType 'http://www.opengis.net/ows:GetCapabilitiesType' is used as a base for complex ty
pe extension. Line 23, position 2.
Schema validation warning: Undefined complexType 'http://www.opengis.net/ows:CapabilitiesBaseType' is used as a base for complex t
ype extension. Line 35, position 2.
Schema validation warning: The 'http://www.opengis.net/gml:Point' element is not declared. Line 869, position 2.
Schema validation warning: The 'http://www.opengis.net/gml:Polygon' element is not declared. Line 870, position 2.
Schema validation warning: The 'http://www.opengis.net/gml:Rectangle' element is not declared. Line 871, position 2.
Schema validation warning: The 'http://www.opengis.net/sps/0:Parameter' element is not declared. Line 381, position 2.
Schema validation warning: The 'http://www.opengis.net/sps/0:ID' element is not declared. Line 451, position 2.
Warning: Schema could not be validated. Class generation may fail or may produce incorrect results.
Error: Error generating classes for schema 'D:\Documents\DEV\SARPilot\Docs\schemas\06-141r2\06-141r2'.
- The datatype 'http://www.opengis.net/ows:GetCapabilitiesType' is missing.
If you would like more help, please type "xsd /?".
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>
ファイルは、次のドキュメントの付録Aからコピー/ペーストされました: http://services.eoportal.org/portal/documents/06-141r2_Ordering_Services_for_Earth_Observation_Products_0.9.2.pdf
ファイルを呼び出していたファイルを含め、すべてのファイルをローカルに追加しました。しかし、まだ、同じエラー。私はかなり私の問題がエラーであると確信しています:データ型 'http://www.opengis.net/ows:GetCapabilitiesType'がありません。 – capdragon
すべてのスキーマを同じフォルダに追加しましたか?私が見た 'import'ステートメントは、異なるディレクトリレベルでこれらの追加スキーマを参照しました。パスされているため、参照されているスキーマが見つからないという問題がまだ発生している可能性があります。 – pmartin
コマンドラインに追加して、 "hintpaths"のままにしておくことができます。インポートされた各スキーマについて言及してください(またインポートした場合は、リンス&リピート)。 xsd.exe/c TopSchema.xsd ImportSchema1.xsd ... ImportOfImportSchema1.xsd –