XML マップのルート要素名を見つける
Contents
[
Hide
]
考えられる使用シナリオ
あなたは見つけることができますXml マップのルート要素名Aspose.Cells を使用XmlMap.RootElementName財産。次のスクリーンショットは、Microsoft Excel の XML マップのルート要素名を示しています。
サンプルコード
次のサンプル コードは、サンプル Excel ファイル最初の XML マップにアクセスし、そのマップを出力します。XmlMap.RootElementName財産。以下に示すサンプル コードのコンソール出力を参照してください。
This file contains hidden or 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