Check 2 Values by Using XPath

SOLVED......

Hello,

I have tried several things but nothing worked so far.
I would like to search for the Firstname and Lastname in my XML and display all the correct Results in my Datagrid.

mlNodeList = xml.SelectNodes("/memberlist/member[./firstname='David']")

That works perfectly but the result is all Members with the Firstname 'David'.
I tried to use an 'and' in my XPath but it didn't work...

mlNodeList = xml.SelectNodes("/memberlist/member[./firstname='David'] & /memberlist/member[./lastname='McDonald']")

I hope you can help me out.

Thanks in advance
[687 byte] By [Notsch] at [2007-11-19 4:48:43]
# 1 Re: Check 2 Values by Using XPath
For more reference here is a good link http://www.w3.org/TandS/QL/QL98/pp/xql.html
Thread1 at 2007-11-10 3:27:43 >