XML Haritasının Kök Öğe Adını Bul
Contents
[
Hide
]
Olası Kullanım Senaryoları
Aspose.Cells kullanarak XML Haritasının Kök Öğe Adını bulabilirsiniz. Aşağıdaki ekran görüntüsü, XML Haritasının Microsoft Excel’de kök öğe adını göstermektedir.
Örnek Kod
Aşağıdaki örnek kod, sample Excel dosyasını yükler ve ilk XML Haritasına erişir ve onun XmlMap.RootElementName özelliğini yazdırır. Lütfen, verilen örnek kodun konsol çıktısını inceleyin.
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-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()); |
Konsol Çıktısı
Root Element Name Of Xml Map: MiscData