SelectNodeは、値を持っていても常に0カウントを返します。ノードリストを読み込むためのSelectNodes常に0カウントを返します。
<?xml version="1.0" encoding="utf-16"?>
<Configurations xmlns="DEH_Common.Schemas">
<sftpConfiguration>
<file>
<filedetails>
<fileext>csv</fileext>
<DataContentDetailId>1</DataContentDetailId>
</filedetails>
</file>
</sftpConfiguration>
</Configurations>
C#のあなたのXPathはsftpConfiguration/file
XmlNodeList nodeList = xmlDoc.DocumentElement.SelectNodes("sftpConfiguration/file");
これは試しましたか?それは動作しましたか? –
それは働いた。ありがとうございました。 –