XML Mapのルート要素名を検索する
Contents
[
Hide
]
可能な使用シナリオ
Microsoft ExcelでXMLマップのルート要素名をXmlMap.RootElementNameプロパティを使用して検索できます。
サンプルコード
次のサンプルコードは、sample Excel fileを読み込み、最初のXMLマップにアクセスし、そのXmlMap.RootElementNameプロパティを出力します。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
//Load sample Excel file having Xml Map | |
Workbook wb = new Workbook("sampleRootElementNameOfXmlMap.xlsx"); | |
//Access first Xml Map inside the Workbook | |
XmlMap xmap = wb.Worksheets.XmlMaps[0]; | |
//Print Root Element Name of Xml Map on Console | |
Console.WriteLine("Root Element Name Of Xml Map: " + xmap.RootElementName); |
コンソール出力
Root Element Name Of Xml Map: MiscData