、私は問題は名前空間で期待します。あなたは例のXMLを持っていますか?名前空間での取り扱いXMLは、例えば
;-p「楽しい」...取得します。あなたのXMLは、XMLのエイリアスを宣言した場合でも、あなたはまだあなたの名前空間のためにそれらを再宣言する必要があるかもしれないこと
XmlDocument doc = new XmlDocument();
doc.LoadXml(@"<test xmlns='myFunkyUri' value='abc'/>");
// wrong; no namespace consideration
XmlElement root = (XmlElement)doc.SelectSingleNode("test");
Console.WriteLine(root == null ? "(no root)" : root.GetAttribute("value"));
// right
XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable);
nsmgr.AddNamespace("x", "myFunkyUri"); // x is my alias for myFunkyUri
root = (XmlElement)doc.SelectSingleNode("x:test", nsmgr);
Console.WriteLine(root == null ? "(no root)" : root.GetAttribute("value"));
注
マネージャー。
ここで間違っていることが複数ある可能性がありますが、ファイルの拡張子は間違いです。デバッガの "doc"を見て、読み込んでいないことを確認しましたか? – womp
これらのXMLファイルの最初の数行を投稿できますか? –