I am using Visual Basic.net to pull a specific value based out of a secondary datasource.
I need the @QAnswer node returned with the @TestID and @QNumber nodes filtered
This is what I have so far:
Dim xPath as string, QA as string
xpath =
"/dfs:myFields/dfs:dataFields/d:Tests/d:TestQuestions/@QAnswer[../@QNumber = '25' AND ../@TestID = 'Test1']"
QA = DataSources(
"Tests").CreateNavigator().SelectSingleNode(xpath, NamespaceManager).ToString
I get a general xPath exception was unhandled by user code error.