SelectNodes from Textbox Syntax
Posted on 2006-06-28
I have the following code, and instead of searching for "111-11-1111" number, I would like it to search from whatever information has been inputed into textbox1.text
This is really simple but I couldnt get it to work. I tried putting in ("//SSN[. = 'ssnBox.Text']/parent::node()/FirstName" however It did not work.
Dim SSNList As System.Xml.XmlNodeList
Dim node As System.Xml.XmlNode
SSNList = xDoc.SelectNodes("//SSN[. = '111-11-1111']/parent::node()/FirstName")
For Each node In SSNList