V
VC
Sorry. Dont know if this is the right forum. I'm a newbee on XML and I
facing a problem
My XML string:
<resposta>
<totalSetor>78</totalSetor>
<totalAgencia>125</totalAgencia>
<senhas>
<item id=1>
<codigo>1</codigo>
<descricao>setor cc</descricao>
</item>
<item id=2>
<codigo>2</codigo>
<descricao>setor poup</descricao>
</item>
</senhas>
</resposta>
I'm using the following code to read the xml elements.
Console.Write(String.Format("totalSetor = {0}{1}",
xml.GetElementsByTagName("totalSetor").Item(0).InnerText,
Environment.NewLine));
Console.Write(String.Format("totalAgencia = {0}{1}",
xml.GetElementsByTagName("totalAgencia").Item(0).InnerText,
Environment.NewLine);
Til here, it's ok. But I'm stuck on how to read 'senhas' nodes and its
inner elements. Could someone give me some sample or points me to a
good tutorial?
Thanks in advance
facing a problem
My XML string:
<resposta>
<totalSetor>78</totalSetor>
<totalAgencia>125</totalAgencia>
<senhas>
<item id=1>
<codigo>1</codigo>
<descricao>setor cc</descricao>
</item>
<item id=2>
<codigo>2</codigo>
<descricao>setor poup</descricao>
</item>
</senhas>
</resposta>
I'm using the following code to read the xml elements.
Console.Write(String.Format("totalSetor = {0}{1}",
xml.GetElementsByTagName("totalSetor").Item(0).InnerText,
Environment.NewLine));
Console.Write(String.Format("totalAgencia = {0}{1}",
xml.GetElementsByTagName("totalAgencia").Item(0).InnerText,
Environment.NewLine);
Til here, it's ok. But I'm stuck on how to read 'senhas' nodes and its
inner elements. Could someone give me some sample or points me to a
good tutorial?
Thanks in advance