1
I need to generate the class from a file. XSD.
Though I’ve tried everything I know (used . net tool: xsd.exe, httputility.net and other . Cs generators) did not succeed.
I think the mistake is in the schema they gave me, but I can’t identify what the problem is. Can anyone help? Thanks in advance.
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://www.cnj.jus.br/replicacao-nacional"
elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:cnj="http://www.cnj.jus.br/intercomunicacao-2.2.2" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
<import schemaLocation="http://www.cnj.jus.br/images/dti/Comite_Gestao_TIC/Modelo_Nacional_Interoperabilidade/versao_07_07_2014/intercomunicacao-2.2.2.xsd"
namespace="http://www.cnj.jus.br/intercomunicacao-2.2.2"></import>
<element name="processos">
<complexType>
<sequence>
<element minOccurs="1" maxOccurs="unbounded" name="processo" type="cnj:tipoProcessoJudicial" />
</sequence>
</complexType>
</element>
</schema>
I executed your code on the site http://www.httputility.net/xsd-to-csharp-vb-class.aspx and see what error you got: Type 'http://www.cnj.jus.br/intercomunicacao-2.2.2:tipProcessoJudicial' is not declared. Your xsd is incomplete.
– gpaoli
This command line can be used to generate the Classes, having the NF-e Schemas: See https://answall.com/a/218780/5704
– Tony