XML Mapのルート要素名を検索する
Contents
[
Hide
]
可能な使用シナリオ
Aspose.Cellsを使用してXML Mapのルート要素名を見つけることができます。次のスクリーンショットは、Microsoft Excel内のXML Mapのルート要素名を示しています。
サンプルコード
以下のサンプルコードは、sample Excel fileをロードし、最初のXML Mapにアクセスしてその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-Java | |
//Load sample Excel file having Xml Map | |
Workbook wb = new Workbook("sampleRootElementNameOfXmlMap.xlsx"); | |
//Access first Xml Map inside the Workbook | |
XmlMap xmap = wb.getWorksheets().getXmlMaps().get(0); | |
//Print Root Element Name of Xml Map on Console | |
System.out.println("Root Element Name Of Xml Map: " + xmap.getRootElementName()); |
コンソール出力
Root Element Name Of Xml Map: MiscData