Cannnot load from XML to class

Feb 8, 2014 at 9:39 PM
the Italian autority has published xsd format for elettronic invoice circularity

I have tried to generate c# class with official xsd but I xsd2Code fails with an error : "the http://www.w3.org/2000/09/xmldsig# signature element is not declared " this is an xsd import section

note that i'm connected to the internet on generate and also I have tried to point to local file
I can't attach the entire xsd file (too long) here, I post the official link

http://www.fatturapa.gov.it/export/fatturazione/sdi/fatturapa/v1.0/fatturapa_v1.0.xsd

Can anyone help me?

tx

m.aurelio
Apr 22, 2014 at 2:36 PM
Ciao, ho anche io lo stesso problema.
Mi sai aiutare ?

Grazie
Apr 28, 2014 at 2:36 PM
actually i think that is a problem with the DTD. the dtdProcessing property of the xmlreadersettings is not set on pars. perhaps we will get an option to do it via a setting so far i see no option to do it yourself. however you could sync their source and recompile it after you did the changes
Jun 8, 2014 at 8:35 AM
Edited Jun 8, 2014 at 8:38 AM
maurelio wrote:
the Italian autority has published xsd format for elettronic invoice circularity

I have tried to generate c# class with official xsd but I xsd2Code fails with an error : "the http://www.w3.org/2000/09/xmldsig# signature element is not declared " this is an xsd import section
.
Io ho risolto il problema eliminando l'elemento
<xs:element minOccurs="0" ref="ds:Signature"/>
Dopo aver eliminato tale elemento le classi sono state generate regolarmente, ma non so se ho fatto bene.
Che dite?
Jun 9, 2014 at 9:27 AM
Controllando gli esempi xml su fatturapa.gov.it ho visto che ds:Signature viene utilizzato solo dalla fattura in formato xml firmato XAdES-BES.

Quindi penso che se non si utilizza quel formato il ds:Signature possa essere ignorato, come hai fatto tu, ma non sono esperto di xml, sto cercando anche io di capire che strada prendere.

se hai informazioni in merito postale qui. grazie...