How to Read and Convert .xsd Extension File to a C # Class

1

How to Read and Convert .xsd Extension File to a C # Class In order to do this and convert the site schema to make it possible to generate an xml with correct schema to be able to issue NFE.

    
asked by anonymous 04.07.2017 / 19:05

2 answers

3

This command line can be used to generate the Classes, having the NF-e Schemas:

xsd.exe nfe_v3.10.xsd xmldsig-core-schema_v1.01.xsd /c /edb

Note that you must include the name of all imported XSDs in the main schema, so nfe_v3.10 and xmldsig-core-schema_v1.01 p>

XSD is accessible when using the Visual Studio Command Prompt.

    
07.07.2017 / 17:42
3

I've used link an addon pro visual studio. Once installed, just right-click on xsd (inside the solution explorer) and then on Run Xsd2Code Generation .

    
04.07.2017 / 19:12