ファイルに対して非常に単純な操作を実行しようとしてい.cxml
ます。ご存じのとおり、基本的には.xml
ファイルです。これは、アプリケーションをテストするために作成したサンプル ファイルです。
<?xml version="1.0" encoding="utf-8"?>
<Collection xmlns:p="http://schemas.microsoft.com/livelabs/pivot/collection/2009" SchemaVersion="1.0" Name="Actresses" xmlns="http://schemas.microsoft.com/collection/metadata/2009">
<FacetCategories>
<FacetCategory Name="Nationality" Type="LongString" p:IsFilterVisible="true" p:IsWordWheelVisible="true" p:IsMetaDataVisible="true" />
</FacetCategories>
<!-- Other entries-->
<Items ImgBase="Actresses_files\go144bwo.0ao.xml" HrefBase="http://www.imdb.com/name/">
<Item Id="2" Img="#2" Name="Anna Karina" Href="nm0439344/">
<Description> She is a nice girl</Description>
<Facets>
<Facet Name="Nationality">
<LongString Value="Danish" />
</Facet>
</Facets>
</Item>
</Items>
<!-- Other entries-->
</Collection>
次のような機能する単純なコードを取得できません。
XDocument document = XDocument.Parse(e.Result);
foreach (XElement x in document.Descendants("Item"))
{
...
}
ジェネリックのテストxml
は機能しています。cxml
ファイルはドキュメントに正しくロードされています。
表情を見ながら:
document.Descendants("Item"), 結果
答えは次のとおりです。
空の「列挙は結果を生成しませんでした」文字列
エラーの可能性についてのヒントはありますか? ファセットの子孫、ファセットなどを取得するためのクイック ルックも追加しましたが、列挙には結果がありません。xml
これは明らかに、テストに使用した汎用ファイルでは発生しません。それは私が抱えている問題.cxml
です。