1
Answer

Select 10 node form a xml file. is it possible?

Ask a question
edu de souza

edu de souza

16y
3.8k
1
Hi Guys, I have a huge xml file, with almost 1.000 nodes, I need to page them.

How can I select 10 by 10, I mean, I want to show 10 nodes in each page.

I don´t have any clue, how can I do that, my code goes above:

XmlDocument xDoc = new XmlDocument();
xDoc.LoadXml(responseFromServer);

XmlNodeList nome        = xDoc.GetElementsByTagName("no_visitante");
XmlNodeList cd_visit    = xDoc.GetElementsByTagName("cd_visitante");
XmlNodeList foto        = xDoc.GetElementsByTagName("cd_arquivo_enviado");
XmlNodeList info_adic   = xDoc.GetElementsByTagName("dc_infoadicional");
XmlNodeList media       = xDoc.GetElementsByTagName("media");
XmlNodeList votos       = xDoc.GetElementsByTagName("votos");
XmlNodeList codvoto     = xDoc.GetElementsByTagName("cd_arquivo");

Thanks.

Answers (1)