XML Haritasının Kök Eleman Adını Bulun
Contents
[
Hide
]
Olası Kullanım Senaryoları
bulabilirsinXML Haritasının Kök Eleman AdıAspose.Cells’i kullanarakXmlMap.RootElementNameEmlak. Aşağıdaki ekran görüntüsü, Microsoft Excel’deki XML Eşlemesinin kök öğe adını gösterir.
Basit kod
Aşağıdaki örnek kod,örnek excel dosyasıve ilk XML Haritasına erişir ve onun çıktısını alır.XmlMap.RootElementNameEmlak. Lütfen aşağıda verilen örnek kodun konsol çıktısına bakın.
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 Çıkışı
Root Element Name Of Xml Map: MiscData