Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はxmlファイルを読んで表示しているメトロアプリに取り組んでいます。
xml ファイルを読み取ることはできますが、タグ値のみが読み取られます。xml の cdata セクションを読み取る必要があります。
の助けを借りてこれを達成できFileOpenPickerますが、特定のタイプのすべてのファイルを開き、ユーザーが不要なファイルを1つ選択できるようにします。
FileOpenPicker
.xml指定した場所にあるファイルを直接開きたい。
.xml
This is the C# example:
XElement xElement = XElement.Load(yourXMLfile); var queryCDATAXML = from element in XTemp.DescendantNodes() where element.NodeType == System.Xml.XmlNodeType.CDATA select element.Parent.Value.Trim();