Hi,
You can try something like this:
nNodes = root.childNodes.length;
// Generate random number
var nRand = Math.floor(Math.random() * nNodes) + 1;
var node = root.selectSingleNode("logo[" + nRand + "]");
Although above code is in javascript you can easily convert it to C# OR VB.NET

Signature
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.
> if for example i have an xml with 10 childnodes
> and i want by random to get 1 of them how do i do that?
[quoted text clipped - 12 lines]
> thnaks i nadvance
> peleg