DUPLICANDO ITENS APARTIR DO ICMS60
O XML está correto? Mostre um pedaço dele.
Citação::
O XML está correto? Mostre um pedaço dele.
/// <remarks/>
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = [Ô]http://www.portalfiscal.inf.br/nfe[Ô])]
[System.Xml.Serialization.XmlRootAttribute(Namespace = [Ô]http://www.portalfiscal.inf.br/nfe[Ô], IsNullable = false)]
public partial class NFe
{
private NFeInfNFe infNFeField;
private Signature signatureField;
private string[] textField;
/// <remarks/>
public NFeInfNFe infNFe
{
get
{
return this.infNFeField;
}
set
{
this.infNFeField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Namespace = [Ô]http://www.w3.org/2000/09/xmldsig#[Ô])]
public Signature Signature
{
get
{
return this.signatureField;
}
set
{
this.signatureField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlTextAttribute()]
public string[] Text
{
get
{
return this.textField;
}
set
{
this.textField = value;
}
}
}
/// <remarks/>
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = [Ô]http://www.portalfiscal.inf.br/nfe[Ô])]
public partial class NFeInfNFe
{
private NFeInfNFeIde ideField;
private NFeInfNFeEmit emitField;
private NFeInfNFeDest destField;
private NFeInfNFeDet[] detField;
private NFeInfNFeTotal totalField;
private NFeInfNFeTransp transpField;
private NFeInfNFeCobr cobrField;
private NFeInfNFeInfAdic infAdicField;
private string[] textField;
private decimal versaoField;
private string idField;
/// <remarks/>
public NFeInfNFeIde ide
O XML, não as classes.
eu copiei somente a tag principal NFe . para fazer a classe .
[c] -<NFe xmlns=[Ô]http://www.portalfiscal.inf.br/nfe[Ô]>
-<infNFe versao=[Ô]3.10[Ô] Id=[Ô]NFe25160908797179000161550010008917651749560055[Ô]>
-<ide>
<cUF>25</cUF>
<cNF>74956005</cNF>
<natOp>Venda de mercadoria adquirida ou recebida de terceiros.</natOp>
<indPag>0</indPag>
<mod>55</mod>
<serie>1</serie>
<nNF>891765</nNF>
<dhEmi>2016-09-14T00:00:00-03:00</dhEmi>
<dhSaiEnt>2016-09-14T00:00:00-03:00</dhSaiEnt>
<tpNF>1</tpNF>
<idDest>1</idDest>
<cMunFG>2516201</cMunFG>
<tpImp>1</tpImp>
<tpEmis>1</tpEmis>
<cDV>5</cDV>
<tpAmb>1</tpAmb>
<finNFe>1</finNFe>
<indFinal>0</indFinal>
<indPres>0</indPres>
<procEmi>0</procEmi>
<verProc>5.6.9.2230</verProc>
</ide>
-<emit>
<CNPJ>08797179000161</CNPJ>
<xNome>Dsg Distribuidora de Alimentos Ltda</xNome>
<xFant>*Vo Ita Frios</xFant>
-<enderEmit>
<xLgr>Rua Salatiel Marques Fontes</xLgr>
<nro>695</nro>
<xBairro>Andre Gadelha</xBairro>
<cMun>2516201</cMun>
<xMun>Sousa</xMun>
<UF>PB</UF>
<CEP>58806410</CEP>
<cPais>1058</cPais>
<xPais>BRASIL</xPais>
<fone>8335212697</fone>
</enderEmit>
<IE>161518931</IE>
<IM>0</IM>
<CNAE>4634601</CNAE>
<CRT>3</CRT>
</emit>
-<dest>
<CNPJ>14898842000117</CNPJ>
<xNome>Marcilene Tereza dos Santos</xNome>
-<enderDest>
<xLgr>Eduardo Estrela da Silva</xLgr>
<nro>104</nro>
<xBairro>Andre Gadelha</xBairro>
<cMun>2516201</cMun>
<xMun>Sousa</xMun>
<UF>PB</UF>
<CEP>58800000</CEP>
<cPais>1058</cPais>
<xPais>BRASIL</xPais>
<fone>8335219234</fone>
</enderDest>
<indIEDest>1</indIEDest>
<IE>161958818</IE>
</dest>
-<det nItem=[Ô]1[Ô]>
-<prod>
<cProd>001250</cProd>
<cEAN/>
<xProd>LING FRG AURORA CX25KG*PC5KG</xProd>
<NCM>16010000</NCM>
<CFOP>5102</CFOP>
<uCom>KG</uCom>
<qCom>10.0000</qCom>
<vUnCom>8.0000000000</vUnCom>
<vProd>80.00</vProd>
<cEANTrib/>
<uTrib>KG</uTrib>
<qTrib>10.0000</qTrib>
<vUnTrib>8.0000000000</vUnTrib>
<indTot>1</indTot>
</prod>
-<imposto>
<vTotTrib>21.80</vTotTrib>
-<ICMS>
-<ICMS00>
<orig>5</orig>
<CST>00</CST>
<modBC>3</modBC>
<vBC>80.00</vBC>
<pICMS>18.0000</pICMS>
<vICMS>14.40</vICMS>
</ICMS00>
</ICMS>
-<IPI>
<cEnq>999</cEnq>
-<IPINT>
<CST>53</CST>
</IPINT>
</IPI>
-<PIS>
-<PISAliq>
<CST>01</CST>
<vBC>80.00</vBC>
<pPIS>1.6500</pPIS>
<vPIS>1.32</vPIS>
</PISAliq>
</PIS>
-<COFINS>
-<COFINSAliq>
<CST>01</CST>
<vBC>80.00</vBC>
<pCOFINS>7.6000</pCOFINS>
<vCOFINS>6.08</vCOFINS>
</COFINSAliq>
</COFINS>
</imposto>
</det>
-<det nItem=[Ô]2[Ô]>
-<prod>
<cProd>001489</cProd>
<cEAN/>
<xProd>HAMB BOV/AVES PERDIGAO CX2,016KG</xProd>
<NCM>16025000</NCM>
<CFOP>5102</CFOP>
<uCom>CX</uCom>
<qCom>1.0000</qCom>
<vUnCom>15.6800000000</vUnCom>
<vProd>15.68</vProd>
<cEANTrib/>
<uTrib>CX</uTrib>
<qTrib>1.0000</qTrib>
<vUnTrib>15.6800000000</vUnTrib>
<indTot>1</indTot>
</prod>
-<imposto>
<vTotTrib>4.27</vTotTrib>
-<ICMS>
-<ICMS00>
<orig>0</orig>
<CST>00</CST>
<modBC>3</modBC>
<vBC>15.68</vBC>
<pICMS>18.0000</pICMS>
<vICMS>2.82</vICMS>
</ICMS00>
</ICMS>
-<IPI>
<cEnq>301</cEnq>
-<IPINT>
<CST>53</CST>
</IPINT>
</IPI>
-<PIS>
-<PISAliq>
<CST>01</CST>
<vBC>15.68</vBC>
<pPIS>1.6500</pPIS>
<vPIS>0.26</vPIS>
</PISAliq>
</PIS>
-<COFINS>
-<COFINSAliq>
<CST>01</CST>
<vBC>15.68</vBC>
<pCOFINS>7.6000</pCOFINS>
<vCOFINS>1.19</vCOFINS>
</COFINSAliq>
</COFINS>
</imposto>
</det>
-<det nItem=[Ô]3[Ô]>
-<prod>
<cProd>004538</cProd>
<cEAN/>
<xProd>SALS HOT DOG CONG AVIVAR CX20KG*5KG</xProd>
<NCM>16010000</NCM>
<CFOP>5102</CFOP>
<uCom>KG</uCom>
<qCom>5.0000</qCom>
<vUnCom>3.2800000000</vUnCom>
<vProd>16.40</vProd>
<cEANTrib/>
<uTrib>KG</uTrib>
<qTrib>5.0000</qTrib>
<vUnTrib>3.2800000000</vUnTrib>
<indTot>1</indTot>
</prod>
-<imposto>
<vTotTrib>4.47</vTotTrib>
-<ICMS>
-<ICMS00>
<orig>0</orig>
<CST>00</CST>
<modBC>3</modBC>
<vBC>16.40</vBC>
<pICMS>18.0000</pICMS>
<vICMS>2.95</vICMS>
</ICMS00>
</ICMS>
-<IPI>
<cEnq>999</cEnq>
-<IPINT>
<CST>53</CST>
</IPINT>
</IPI>
-<PIS>
-<PISAliq>
<CST>01</CST>
<vBC>16.40</vBC>
<pPIS>1.6500</pPIS>
<vPIS>0.27</vPIS>
</PISAliq>
</PIS>
-<COFINS>
-<COFINSAliq>
<CST>01</CST>
<vBC>16.40</vBC>
<pCOFINS>7.6000</pCOFINS>
<vCOFINS>1.25</vCOFINS>
</COFINSAliq>
</COFINS>
</imposto>
</det>
-<det nItem=[Ô]4[Ô]>
-<prod>
<cProd>003331</cProd>
<cEAN/>
<xProd>PEITO FRG CONG IND CARRER CX10KG</xProd>
<NCM>02071400</NCM>
<CFOP>5102</CFOP>
<uCom>CX</uCom>
<qCom>1.0000</qCom>
<vUnCom>46.7000000000</vUnCom>
<vProd>46.70</vProd>
<cEANTrib/>
<uTrib>CX</uTrib>
<qTrib>1.0000</qTrib>
<vUnTrib>46.7000000000</vUnTrib>
<indTot>1</indTot>
</prod>
-<imposto>
<vTotTrib>8.41</vTotTrib>
-<ICMS>
-<ICMS00>
<orig>0</orig>
<CST>00</CST>
<modBC>3</modBC>
<vBC>46.70</vBC>
<pICMS>18.0000</pICMS>
<vICMS>8.41</vICMS>
</ICMS00>
</ICMS>
-<IPI>
<cEnq>999</cEnq>
-<IPINT>
<CST>53</CST>
</IPINT>
</IPI>
-<PIS>
-<PISNT>
<CST>06</CST>
</PISNT>
</PIS>
-<COFINS>
-<COFINSNT>
<CST>06</CST>
</COFINSNT>
</COFINS>
</imposto>
</det>
-<total>
-<ICMSTot>
<vBC>158.78</vBC>
<vICMS>28.58</vICMS>
<vICMSDeson>0.00</vICMSDeson>
<vFCPUFDest>0.00</vFCPUFDest>
<vBCST>0.00</vBCST>
<vST>0.00</vST>
<vProd>158.78</vProd>
<vFrete>0.00</vFrete>
<vSeg>0.00</vSeg>
<vDesc>0.00</vDesc>
<vII>0.00</vII>
<vIPI>0.00</vIPI>
<vPIS>1.85</vPIS>
<vCOFINS>8.52</vCOFINS>
<vOutro>0.00</vOutro>
<vNF>158.78</vNF>
<vTotTrib>38.95</vTotTrib>
</ICMSTot>
</total>
-<transp>
<modFrete>0</modFrete>
-<transporta>
<CNPJ>08797179000161</CNPJ>
<xNome>DSG DISTRIBUIDORA DE ALIMENTOS LTDA</xNome>
<IE>161518931</IE>
<xEnder>Rua SALATIEL MARQUES FONTES, 695</xEnder>
<xMun>SOUSA</xMun>
<UF>PB</UF>
</transporta>
-<veicTransp>
<placa>NQD8006</placa>
<UF>PB</UF>
</veicTransp>
-<vol>
<qVol>17</qVol>
<esp>VOLUMES</esp>
<pesoL>27.016</pesoL>
<pesoB>27.016</pesoB>
</vol>
</transp>
-<cobr>
-<fat>
<nFat>891765</nFat>
<vOrig>208.40</vOrig>
<vLiq>208.40</vLiq>
</fat>
</cobr>
-<infAdic>
-<infCpl>
<![CDATA[Vendedor: Rodrigo - Rota: 001-SousaVencimento: 14/09/2016 FAVOR CONFERIR MERCADORIA NAO ACEITAMOS RECLAMACOES POSTERIORES]]>
</infCpl>
</infAdic>
</infNFe>
-<Signature xmlns=[Ô]http://www.w3.org/2000/09/xmldsig#[Ô]>
-<SignedInfo>
<CanonicalizationMethod Algorithm=[Ô]http://www.w3.org/TR/2001/REC-xml-c14n-20010315[Ô]/>
<SignatureMethod Algorithm=[Ô]http://www.w3.org/2000/09/xmldsig#rsa-sha1[Ô]/>
-<Reference URI=[Ô]#NFe25160908797179000161550010008917651749560055[Ô]>
-<Transforms>
<Transform Algorithm=[Ô]http://www.w3.org/2000/09/xmldsig#enveloped-signature[Ô]/>
<Transform Algorithm=[Ô]http://www.w3.org/TR/2001/REC-xml-c14n-20010315[Ô]/>
</Transforms>
<DigestMethod Algorithm=[Ô]http://www.w3.org/2000/09/xmldsig#sha1[Ô]/>
<DigestValue>/oqxQ3D7H9hjrinAaWuMLazrKFQ=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>JLQ3FSSEmT/DW2C1MePs9ZOXLdJlvdTPDhyMO6GDtoVFYiCTqKs060DD0J1fXxOmRAuN2Q1/JnBF+9WhMdBhQTxede4WV89vYdlf72vRvDxG+GD8rG4PbiccY7o4tHwhW0gmOEB4AmgaPPAqcwFEyi+EsVMu6TXnntw5JCRWLsj33mhGjnTvRci9kjMELRaAosssRDUBEG9lg3nXR8K2a/7rgTwqo79BZdulVza++31WHe6aUnuF+GBhMlXAzDZKWufAjE2jyWFR9A+WHafYOWN/wyQA6H14ssPWXRoYBO3uW6E+o+Cmelh/G9Fa+r1uoUVXJeTPWQk3SSMW35niYA==</SignatureValue>
-<KeyInfo>
-<X509Data>
<X509Certificate>MIIIATCCBemgAwIBAgIIX8Ap71r98KUwDQYJKoZIhvcNAQELBQAwcTELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEVMBMGA1UEAxMMQUMgVkFMSUQgUkZCMB4XDTE1MTIwMzE3MTUxOFoXDTE2MTIwMjE3MTUxOFowgeExCzAJBgNVBAYTAkJSMQswCQYDVQQI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7SM5IyiGx73pNHR8MGkvCUTanib2OG/UYA/Ccqakq4aGsy1dLw8BMHOdZ3AfCrdtA6Ba4NBgxmE8g/GkjZoSXq4DJUyT/miudrpgpuHWSZKepMnHc5RNSnss/Xy0fdo/4jQjCvtecBFk/fMbqFmzCaWpkKOPJvIioHzlX3AIdq7HEy3gAIndEIBSF+spX2qnvLyLpgrKwiUagLHnt9rDMzBcv1Ewoqym2nwkwJT/WDp06lXZeWaxchZYic34HjJAhBailP2W+Jdct9NfSoCC/RipEpwvU+XQfmDQMsae33YSwWIbQNMqfVp2LH4jAr4MKfSCzTf4kNsOtZ7kmdJR5k2E8
[c] -<NFe xmlns=[Ô]http://www.portalfiscal.inf.br/nfe[Ô]>
-<infNFe versao=[Ô]3.10[Ô] Id=[Ô]NFe25160908797179000161550010008917651749560055[Ô]>
-<ide>
<cUF>25</cUF>
<cNF>74956005</cNF>
<natOp>Venda de mercadoria adquirida ou recebida de terceiros.</natOp>
<indPag>0</indPag>
<mod>55</mod>
<serie>1</serie>
<nNF>891765</nNF>
<dhEmi>2016-09-14T00:00:00-03:00</dhEmi>
<dhSaiEnt>2016-09-14T00:00:00-03:00</dhSaiEnt>
<tpNF>1</tpNF>
<idDest>1</idDest>
<cMunFG>2516201</cMunFG>
<tpImp>1</tpImp>
<tpEmis>1</tpEmis>
<cDV>5</cDV>
<tpAmb>1</tpAmb>
<finNFe>1</finNFe>
<indFinal>0</indFinal>
<indPres>0</indPres>
<procEmi>0</procEmi>
<verProc>5.6.9.2230</verProc>
</ide>
-<emit>
<CNPJ>08797179000161</CNPJ>
<xNome>Dsg Distribuidora de Alimentos Ltda</xNome>
<xFant>*Vo Ita Frios</xFant>
-<enderEmit>
<xLgr>Rua Salatiel Marques Fontes</xLgr>
<nro>695</nro>
<xBairro>Andre Gadelha</xBairro>
<cMun>2516201</cMun>
<xMun>Sousa</xMun>
<UF>PB</UF>
<CEP>58806410</CEP>
<cPais>1058</cPais>
<xPais>BRASIL</xPais>
<fone>8335212697</fone>
</enderEmit>
<IE>161518931</IE>
<IM>0</IM>
<CNAE>4634601</CNAE>
<CRT>3</CRT>
</emit>
-<dest>
<CNPJ>14898842000117</CNPJ>
<xNome>Marcilene Tereza dos Santos</xNome>
-<enderDest>
<xLgr>Eduardo Estrela da Silva</xLgr>
<nro>104</nro>
<xBairro>Andre Gadelha</xBairro>
<cMun>2516201</cMun>
<xMun>Sousa</xMun>
<UF>PB</UF>
<CEP>58800000</CEP>
<cPais>1058</cPais>
<xPais>BRASIL</xPais>
<fone>8335219234</fone>
</enderDest>
<indIEDest>1</indIEDest>
<IE>161958818</IE>
</dest>
-<det nItem=[Ô]1[Ô]>
-<prod>
<cProd>001250</cProd>
<cEAN/>
<xProd>LING FRG AURORA CX25KG*PC5KG</xProd>
<NCM>16010000</NCM>
<CFOP>5102</CFOP>
<uCom>KG</uCom>
<qCom>10.0000</qCom>
<vUnCom>8.0000000000</vUnCom>
<vProd>80.00</vProd>
<cEANTrib/>
<uTrib>KG</uTrib>
<qTrib>10.0000</qTrib>
<vUnTrib>8.0000000000</vUnTrib>
<indTot>1</indTot>
</prod>
-<imposto>
<vTotTrib>21.80</vTotTrib>
-<ICMS>
-<ICMS00>
<orig>5</orig>
<CST>00</CST>
<modBC>3</modBC>
<vBC>80.00</vBC>
<pICMS>18.0000</pICMS>
<vICMS>14.40</vICMS>
</ICMS00>
</ICMS>
-<IPI>
<cEnq>999</cEnq>
-<IPINT>
<CST>53</CST>
</IPINT>
</IPI>
-<PIS>
-<PISAliq>
<CST>01</CST>
<vBC>80.00</vBC>
<pPIS>1.6500</pPIS>
<vPIS>1.32</vPIS>
</PISAliq>
</PIS>
-<COFINS>
-<COFINSAliq>
<CST>01</CST>
<vBC>80.00</vBC>
<pCOFINS>7.6000</pCOFINS>
<vCOFINS>6.08</vCOFINS>
</COFINSAliq>
</COFINS>
</imposto>
</det>
-<det nItem=[Ô]2[Ô]>
-<prod>
<cProd>001489</cProd>
<cEAN/>
<xProd>HAMB BOV/AVES PERDIGAO CX2,016KG</xProd>
<NCM>16025000</NCM>
<CFOP>5102</CFOP>
<uCom>CX</uCom>
<qCom>1.0000</qCom>
<vUnCom>15.6800000000</vUnCom>
<vProd>15.68</vProd>
<cEANTrib/>
<uTrib>CX</uTrib>
<qTrib>1.0000</qTrib>
<vUnTrib>15.6800000000</vUnTrib>
<indTot>1</indTot>
</prod>
-<imposto>
<vTotTrib>4.27</vTotTrib>
-<ICMS>
-<ICMS00>
<orig>0</orig>
<CST>00</CST>
<modBC>3</modBC>
<vBC>15.68</vBC>
<pICMS>18.0000</pICMS>
<vICMS>2.82</vICMS>
</ICMS00>
</ICMS>
-<IPI>
<cEnq>301</cEnq>
-<IPINT>
<CST>53</CST>
</IPINT>
</IPI>
-<PIS>
-<PISAliq>
<CST>01</CST>
<vBC>15.68</vBC>
<pPIS>1.6500</pPIS>
<vPIS>0.26</vPIS>
</PISAliq>
</PIS>
-<COFINS>
-<COFINSAliq>
<CST>01</CST>
<vBC>15.68</vBC>
<pCOFINS>7.6000</pCOFINS>
<vCOFINS>1.19</vCOFINS>
</COFINSAliq>
</COFINS>
</imposto>
</det>
-<det nItem=[Ô]3[Ô]>
-<prod>
<cProd>004538</cProd>
<cEAN/>
<xProd>SALS HOT DOG CONG AVIVAR CX20KG*5KG</xProd>
<NCM>16010000</NCM>
<CFOP>5102</CFOP>
<uCom>KG</uCom>
<qCom>5.0000</qCom>
<vUnCom>3.2800000000</vUnCom>
<vProd>16.40</vProd>
<cEANTrib/>
<uTrib>KG</uTrib>
<qTrib>5.0000</qTrib>
<vUnTrib>3.2800000000</vUnTrib>
<indTot>1</indTot>
</prod>
-<imposto>
<vTotTrib>4.47</vTotTrib>
-<ICMS>
-<ICMS00>
<orig>0</orig>
<CST>00</CST>
<modBC>3</modBC>
<vBC>16.40</vBC>
<pICMS>18.0000</pICMS>
<vICMS>2.95</vICMS>
</ICMS00>
</ICMS>
-<IPI>
<cEnq>999</cEnq>
-<IPINT>
<CST>53</CST>
</IPINT>
</IPI>
-<PIS>
-<PISAliq>
<CST>01</CST>
<vBC>16.40</vBC>
<pPIS>1.6500</pPIS>
<vPIS>0.27</vPIS>
</PISAliq>
</PIS>
-<COFINS>
-<COFINSAliq>
<CST>01</CST>
<vBC>16.40</vBC>
<pCOFINS>7.6000</pCOFINS>
<vCOFINS>1.25</vCOFINS>
</COFINSAliq>
</COFINS>
</imposto>
</det>
-<det nItem=[Ô]4[Ô]>
-<prod>
<cProd>003331</cProd>
<cEAN/>
<xProd>PEITO FRG CONG IND CARRER CX10KG</xProd>
<NCM>02071400</NCM>
<CFOP>5102</CFOP>
<uCom>CX</uCom>
<qCom>1.0000</qCom>
<vUnCom>46.7000000000</vUnCom>
<vProd>46.70</vProd>
<cEANTrib/>
<uTrib>CX</uTrib>
<qTrib>1.0000</qTrib>
<vUnTrib>46.7000000000</vUnTrib>
<indTot>1</indTot>
</prod>
-<imposto>
<vTotTrib>8.41</vTotTrib>
-<ICMS>
-<ICMS00>
<orig>0</orig>
<CST>00</CST>
<modBC>3</modBC>
<vBC>46.70</vBC>
<pICMS>18.0000</pICMS>
<vICMS>8.41</vICMS>
</ICMS00>
</ICMS>
-<IPI>
<cEnq>999</cEnq>
-<IPINT>
<CST>53</CST>
</IPINT>
</IPI>
-<PIS>
-<PISNT>
<CST>06</CST>
</PISNT>
</PIS>
-<COFINS>
-<COFINSNT>
<CST>06</CST>
</COFINSNT>
</COFINS>
</imposto>
</det>
-<total>
-<ICMSTot>
<vBC>158.78</vBC>
<vICMS>28.58</vICMS>
<vICMSDeson>0.00</vICMSDeson>
<vFCPUFDest>0.00</vFCPUFDest>
<vBCST>0.00</vBCST>
<vST>0.00</vST>
<vProd>158.78</vProd>
<vFrete>0.00</vFrete>
<vSeg>0.00</vSeg>
<vDesc>0.00</vDesc>
<vII>0.00</vII>
<vIPI>0.00</vIPI>
<vPIS>1.85</vPIS>
<vCOFINS>8.52</vCOFINS>
<vOutro>0.00</vOutro>
<vNF>158.78</vNF>
<vTotTrib>38.95</vTotTrib>
</ICMSTot>
</total>
-<transp>
<modFrete>0</modFrete>
-<transporta>
<CNPJ>08797179000161</CNPJ>
<xNome>DSG DISTRIBUIDORA DE ALIMENTOS LTDA</xNome>
<IE>161518931</IE>
<xEnder>Rua SALATIEL MARQUES FONTES, 695</xEnder>
<xMun>SOUSA</xMun>
<UF>PB</UF>
</transporta>
-<veicTransp>
<placa>NQD8006</placa>
<UF>PB</UF>
</veicTransp>
-<vol>
<qVol>17</qVol>
<esp>VOLUMES</esp>
<pesoL>27.016</pesoL>
<pesoB>27.016</pesoB>
</vol>
</transp>
-<cobr>
-<fat>
<nFat>891765</nFat>
<vOrig>208.40</vOrig>
<vLiq>208.40</vLiq>
</fat>
</cobr>
-<infAdic>
-<infCpl>
<![CDATA[Vendedor: Rodrigo - Rota: 001-SousaVencimento: 14/09/2016 FAVOR CONFERIR MERCADORIA NAO ACEITAMOS RECLAMACOES POSTERIORES]]>
</infCpl>
</infAdic>
</infNFe>
-<Signature xmlns=[Ô]http://www.w3.org/2000/09/xmldsig#[Ô]>
-<SignedInfo>
<CanonicalizationMethod Algorithm=[Ô]http://www.w3.org/TR/2001/REC-xml-c14n-20010315[Ô]/>
<SignatureMethod Algorithm=[Ô]http://www.w3.org/2000/09/xmldsig#rsa-sha1[Ô]/>
-<Reference URI=[Ô]#NFe25160908797179000161550010008917651749560055[Ô]>
-<Transforms>
<Transform Algorithm=[Ô]http://www.w3.org/2000/09/xmldsig#enveloped-signature[Ô]/>
<Transform Algorithm=[Ô]http://www.w3.org/TR/2001/REC-xml-c14n-20010315[Ô]/>
</Transforms>
<DigestMethod Algorithm=[Ô]http://www.w3.org/2000/09/xmldsig#sha1[Ô]/>
<DigestValue>/oqxQ3D7H9hjrinAaWuMLazrKFQ=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>JLQ3FSSEmT/DW2C1MePs9ZOXLdJlvdTPDhyMO6GDtoVFYiCTqKs060DD0J1fXxOmRAuN2Q1/JnBF+9WhMdBhQTx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LmNvbaA4BgVgTAEDBKAvBC0wNTA2MTk3NzAyNjEyMjQ1NDk5MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDCgIgYFYEwBAwKgGQQXREFOSUxPIFNBUk1FTlRPIEdBREVMSEGgGQYFYEwBAwOgEAQOMDg3OTcxNzkwMDAxNjGgFwYFYEwBAwegDgQMMDAwMDAwMDAwMDAwMA0GCSqGSIb3DQEBCwUAA4ICAQDEmmfSDAmIOpBQJA28pSQIANx4s3gpJDEItuS3lHSBosxsFGJVFFF0uV0ZUnujRP8v/Yi6AlV+87L5jKPCe+jF/lqwTmh0OdXG4tMyCmNEl5Av0+d4XBaq002Vc5MIYkzD5XM1SrWbNrG4HD7xMMnuxnr2hK63DD8m76nrkfeYAkeJvmgAe5UDIpmlr/2Qjp0RoVsq/NzenRRBjJ9r6Q2zXSKvJZACX2+N1zvUVTqCjOGMZ4YrmUZPyYYyqIkRb5Z3QOI4iLQenpl3dGV6gtYq8hXmnXZ6COT6ua36GgK4ZXsTAVJjnLEA1MsdavERU1t1R7SM5IyiGx73pNHR8MGkvCUTanib2OG/UYA/Ccqakq4aGsy1dLw8BMHOdZ3AfCrdtA6Ba4NBgxmE8g/GkjZoSXq4DJUyT/miudrpgpuHWSZKepMnHc5RNSnss/Xy0fdo/4jQjCvtecBFk/fMbqFmzCaWpkKOPJvIioHzlX3AIdq7HEy3gAIndEIBSF+spX2qnvLyLpgrKwiUagLHnt9rDMzBcv1Ewoqym2nwkwJT/WDp06lXZeWaxchZYic34HjJAhBailP2W+Jdct9NfSoCC/RipEpwvU+XQfmDQMsae33YSwWIbQNMqfVp2LH4jAr4MKfSCzTf4kNsOtZ7kmdJR5k2E8
Foi à partir dele que você gerou essas classes?
Citação::
Foi à partir dele que você gerou essas classes?
Foi sim.
pq eu tentei copiar tudo do xml autorizado. dai nao tava criando as classes. fui testando e peguei somente a parti dae a NFe ate fechar a tag NFe.
Kerplnuk me envia seu projeto esse exemplo para mim testar aqui para ver se da certo
Aff... por acaso você está abrindo o XML com o internet explorer e copiando de lá para tentar gerar as classes?
Citação::
Aff... por acaso você está abrindo o XML com o internet explorer e copiando de lá para tentar gerar as classes?
é isso mesmo q estou fazendo abrindo no internet explore.
fui abrir no NotePad ++ fica tudo em uma única linha. ..
ahhh agora deu certo fiz assim pelo NotePad +++
---
namespace NFe
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
XmlSerializer ser = new XmlSerializer(typeof(nfeProc));
TextReader textReader = (TextReader)new StreamReader([Ô]C:\\Users\\user\\Desktop\ este xml\\ICMS 60 - ICMS 00.xml[Ô]);
XmlTextReader reader = new XmlTextReader(textReader);
reader.Read();
nfeProc nota = (nfeProc)ser.Deserialize(reader);
}
}
}
---
namespace NFe
{
/// <remarks/>
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = [Ô]http://www.portalfiscal.inf.br/nfe[Ô])]
[System.Xml.Serialization.XmlRootAttribute(Namespace = [Ô]http://www.portalfiscal.inf.br/nfe[Ô], IsNullable = false)]
public partial class nfeProc
{
private nfeProcNFe nFeField;
private nfeProcProtNFe protNFeField;
private decimal versaoField;
/// <remarks/>
public nfeProcNFe NFe
{
get
{
return this.nFeField;
}
set
{
this.nFeField = value;
..........
...........
.............
Tópico encerrado , respostas não são mais permitidas