I'm doing an XML reading from Nfe however, I'm currently reading and playing in a txt
, but I can not read those tags below:
<?xml version="1.0" encoding="UTF-8"?>
<nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00">
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
<infNFe Id="NFe0000000000000000000000000000000000000000" versao="2.00>
I can not identify these openings of node <?xml
and ?>
, and nfeProc
and infNFe
returns me node empty.
switch (Ler_Xml.NodeType)
{
case XmlNodeType.Element:
txt_display_xml_envio.AppendText("<" + Ler_Xml.Name);
txt_display_xml_envio.AppendText(">");
break;
case XmlNodeType.ProcessingInstruction:
txt_display_xml_envio.AppendText("<?" + Ler_Xml.Name);
txt_display_xml_envio.AppendText("?>");
break;
case XmlNodeType.Text:
txt_display_xml_envio.AppendText(Ler_Xml.Value);
break;
case XmlNodeType.EndElement:
txt_display_xml_envio.AppendText("</" + Ler_Xml.Name);
txt_display_xml_envio.AppendText( ">");
txt_display_xml_envio.AppendText(System.Environment.NewLine.ToString());
txt_display_xml_envio.Update();
break;
}