P
Paulo
exportapedido ExpPedido = new exportapedido(); //WebService
XmlNode node1 = ExpPedido.ListaPedidos();
GridView1.DataSource = node1;
GridView1.DataBind();
Hi, the code above shows a Grid like below coming from a WebService, but how
can I save it to a XML on some folder in the machine?
Can you help me? Using VWD 2008 C# Express
Thanks
Name LocalName NamespaceURI Prefix IsEmpty HasAttributes InnerXml
InnerText Value HasChildNodes IsReadOnly OuterXml BaseURI
PedCodigo PedCodigo 963 963 <PedCodigo>963</PedCodigo>
UsuCodigo UsuCodigo <UsuCodigo />
LojCodigo LojCodigo
Itens Itens
<Item><ItpCodigo>1162</ItpCodigo><PedCodigo>963</PedCodigo><PrcCodigo
/><ProCodigo>904.002.02</ProCodigo><ProCodigoInterno>904.002.02</ProCodigoInterno><ConCodigo
/><UsuCodigo /><ItpQtde>1</ItpQtde><ItpMensagem
/><ItpValor>265,00</ItpValor><ItpStatus
/><ItpExcluido>0</ItpExcluido><ItpDtAtualizacao /><ItpDtInclusao /></Item>
1162963904.002.02904.002.021265,000
<Itens><Item><ItpCodigo>1162</ItpCodigo><PedCodigo>963</PedCodigo><PrcCodigo
/><ProCodigo>904.002.02</ProCodigo><ProCodigoInterno>904.002.02</ProCodigoInterno><ConCodigo
/><UsuCodigo /><ItpQtde>1</ItpQtde><ItpMensagem
/><ItpValor>265,00</ItpValor><ItpStatus
/><ItpExcluido>0</ItpExcluido><ItpDtAtualizacao /><ItpDtInclusao
/></Item></Itens>
DadosComplementares DadosComplementares <PcoCodigo
/><PedCodigo>963</PedCodigo><PcoTipoEndereco /><PcoSMS /><PcoInstrucoes
/><PcoEmailDotz /><PcoDtEntrega /><PcoPeriodo /><PcoAssinatura
/><PcoCartaoBandeira /><PcoCartaoTitular /><PcoCartaoNumero /><PcoCartaoSeg
/><PcoCartaoValMes /><PedDtInclusao /><PcoBancoDebito
/><PcoEntregaEspecial>N</PcoEntregaEspecial><PcoBoletoGerado>S</PcoBoletoGerado><PcoDtAtualizacao
/><PcoDtInclusao /> 963NS
__________ Information from ESET Smart Security, version of virus signature database 3599 (20081110) __________
The message was checked by ESET Smart Security.
http://www.eset.com
XmlNode node1 = ExpPedido.ListaPedidos();
GridView1.DataSource = node1;
GridView1.DataBind();
Hi, the code above shows a Grid like below coming from a WebService, but how
can I save it to a XML on some folder in the machine?
Can you help me? Using VWD 2008 C# Express
Thanks
Name LocalName NamespaceURI Prefix IsEmpty HasAttributes InnerXml
InnerText Value HasChildNodes IsReadOnly OuterXml BaseURI
PedCodigo PedCodigo 963 963 <PedCodigo>963</PedCodigo>
UsuCodigo UsuCodigo <UsuCodigo />
LojCodigo LojCodigo
Itens Itens
<Item><ItpCodigo>1162</ItpCodigo><PedCodigo>963</PedCodigo><PrcCodigo
/><ProCodigo>904.002.02</ProCodigo><ProCodigoInterno>904.002.02</ProCodigoInterno><ConCodigo
/><UsuCodigo /><ItpQtde>1</ItpQtde><ItpMensagem
/><ItpValor>265,00</ItpValor><ItpStatus
/><ItpExcluido>0</ItpExcluido><ItpDtAtualizacao /><ItpDtInclusao /></Item>
1162963904.002.02904.002.021265,000
<Itens><Item><ItpCodigo>1162</ItpCodigo><PedCodigo>963</PedCodigo><PrcCodigo
/><ProCodigo>904.002.02</ProCodigo><ProCodigoInterno>904.002.02</ProCodigoInterno><ConCodigo
/><UsuCodigo /><ItpQtde>1</ItpQtde><ItpMensagem
/><ItpValor>265,00</ItpValor><ItpStatus
/><ItpExcluido>0</ItpExcluido><ItpDtAtualizacao /><ItpDtInclusao
/></Item></Itens>
DadosComplementares DadosComplementares <PcoCodigo
/><PedCodigo>963</PedCodigo><PcoTipoEndereco /><PcoSMS /><PcoInstrucoes
/><PcoEmailDotz /><PcoDtEntrega /><PcoPeriodo /><PcoAssinatura
/><PcoCartaoBandeira /><PcoCartaoTitular /><PcoCartaoNumero /><PcoCartaoSeg
/><PcoCartaoValMes /><PedDtInclusao /><PcoBancoDebito
/><PcoEntregaEspecial>N</PcoEntregaEspecial><PcoBoletoGerado>S</PcoBoletoGerado><PcoDtAtualizacao
/><PcoDtInclusao /> 963NS
__________ Information from ESET Smart Security, version of virus signature database 3599 (20081110) __________
The message was checked by ESET Smart Security.
http://www.eset.com