XSDをいくつかのC#クラスに変換しようとしています。他にもたくさんのファイルがありましたが、なぜこのファイルが動作しないのか不思議です。xsd.exeを使用してeregアソシエーションからC#ファイルを生成する
schema informationには、ローカルディスクにダウンロードしたthe XSD fileへのダウンロードセクションのリンクが含まれています。その後、ms devツールからXSDコマンドを実行しました。
これは、コマンドプロンプトからダンプです:
C:\temp\XSD>xsd version-13-draft-ivi-xsd-scheme.xsd /classes /namespace:MyNamespace
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 4.6.1055.0]
Copyright (C) Microsoft Corporation. All rights reserved.
Schema validation warning: The 'http://www.w3.org/2000/09/xmldsig:Signature' element is not declared. Line 17, position 5.
Warning: Schema could not be validated. Class generation may fail or may produce incorrect results.
Error: Error generating classes for schema 'version-13-draft-ivi-xsd-scheme'.
- The element 'http://www.w3.org/2000/09/xmldsig#:Signature' is missing.
If you would like more help, please type "xsd /?".
XSDバリデータは、署名の名前空間をダウンロードすることができないように思え。しかし、私は正確に何が起こっているのか分かりません。誰かが間違っていることを説明できますか?
'schemaLocation =" xmldsig-core-schema.xsd "は' xmldsig-core-schema.xsd'というローカルファイルを参照しています。それはあなたの作業ディレクトリに存在しますか?あなたが逆の順序でxsdファイルを置く場合、https://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd –