I have this XML: Type A:
<?xml version="1.0" encoding="UTF-8"?> <nfeProc versao="2.00" xmlns="http://www.portalfiscal.inf.br/nfe"> </nfeProc>
Type B:
<?xml version="1.0" encoding="UTF-8"?> <cancCTe xmlns="http://www.portalfiscal.inf.br/cte" versao="1.04"> </cancCTe>
Type C:
<?xml version="1.0" encoding="UTF-8"?> <cteProc xmlns="http://www.portalfiscal.inf.br/cte" versao="1.04"> </cteProc>
I read the root of the node as follows:
XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(nomear); XmlNodeList ml = xmlDoc.GetElementsByTagName("*"); XmlNode primer = xmlDoc.DocumentElement; exti = primer.Name;
With this code, I read nfeProc , cancTE and cteProc .
How can I read the meaning of versao ?
source share