Hi I am using xpath to find nodes in xml and bind to a radiobuttonlist, so far I have
The problem is this is binding the same value to both the text and value of the radiobutton list. How would I pull another node from the xml and display this as the value?Code:Dim Doc As XPathDocument = New XPathDocument(localDrive & "\xml\jobs.xml") Dim Navigator As XPathNavigator Navigator = Doc.CreateNavigator() 'Dim Iterator As XPathNodeIterator = Navigator.Select("/jobCodes/job[SoRCode[text()='" & Master.SORcode & "']]/DUIJobDescription") Dim Iterator As XPathNodeIterator = Navigator.Select("/jobCodes/job[SoRCode[text()='" & Master.SORcode & "']][RoomID[text()='" & Master.roomID & "']]/DUIJobDescription") While Iterator.MoveNext() rblJobs.Items.Add(New ListItem(Iterator.Current.Value, Iterator.Current.Value)) End While
Thanks in advance




Reply With Quote