I'm trying to generate XSD.exe classes in C # from the Reinf XSD files:
EFD Reinf v1_04_00
link
As follows:
C:\Reinf\XSD>xsd evtInfoContribuinte-v1_04_00.xsd /classes
XSD.exe returns error:
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.
I understand that in XSD it is giving error here:
<xs:element ref="ds:Signature"/>
I removed this line and it worked.
My question: Would this be the correct procedure (remove)?
Since it is the XSD file made available by the IRS.
Will not the generated classes be incomplete?