オンライン xpath ツールを使用して以下の xml に対して動作するように以下の xpath を取得できますが、「式はノード セットに評価する必要があります」というメッセージが表示されます。.NET 4.5 の例外
xpath:
//*[starts-with(name(.), "childnode")[identification/text()='xyz']]
xml:
<rootnode>
<childnode1234>
<identification>xyz</identification>
</childnode1234>
<childnode3456>
<identification>abc</identification>
</childnode3456>
</rootnode>
期待される結果は
<childnode1234>
<identification>xyz</identification>
</childnode1234>