Estou tentando gerar pelo XSD.exe as classes em C# a partir dos arquivos XSD da Reinf:
EFD Reinf v1_04_00
http://sped.rfb.gov.br/arquivo/show/2802
Da seguinte forma:
C:\Reinf\XSD>xsd evtInfoContribuinte-v1_04_00.xsd /classes
o XSD.exe retorna erro:
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' el
ement is not declared. Line 754, position 10.
Warning: Schema could not be validated. Class generation may fail or may produce
incorrect results.
Error: Error generating classes for schema 'evtInfoContribuinte-v1_04_00'.
- The element 'http://www.w3.org/2000/09/xmldsig#:Signature' is missing.
If you would like more help, please type "xsd /?".
C:\Reinf\XSD>xsd evtInfoContribuinte-v1_04_00.xsd /classes
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' el
ement is not declared. Line 754, position 10.
Warning: Schema could not be validated. Class generation may fail or may produce
incorrect results.
Error: Error generating classes for schema 'evtInfoContribuinte-v1_04_00'.
- The element 'http://www.w3.org/2000/09/xmldsig#:Signature' is missing.
Entendi que no XSD ele está dando erro aqui:
<xs:element ref="ds:Signature"/>
Removi esta linha e deu certo.
Minha dúvida: Seria esse o procedimento correto (remover)?
Uma vez que é o arquivo XSD disponibilizado pela Receita Federal.
As classes geradas não ficariam incompletas?