kronickiller
New Member
I am able to get the below xpath to work against the below xml with online xpath tools but I am getting an "Expression must evaluate to a node-set." exception in .NET 4.5xpath:\[code\]//*[starts-with(name(.), "childnode")[identification/text()='xyz']]\[/code\]xml:\[code\]<rootnode> <childnode1234> <identification>xyz</identification> </childnode1234> <childnode3456> <identification>abc</identification> </childnode3456> </rootnode>\[/code\]The expected result is\[code\]<childnode1234> <identification>xyz</identification> </childnode1234>\[/code\]