XmlMapCollection.Add Yöntemi Kullanarak Çalışma Kitabının İçine XML Haritası Ekle
Contents
[
Hide
]
Olası Kullanım Senaryoları
Aspose.Cells for Python via .NET, çalışma kitabına XML Haritasını içe aktarmanıza olanak sağlayan XmlMapCollection.add() metodunu sağlar.
XmlMapCollection.Add yöntemini kullanarak İçine ‘XmlMap’ ekleyin
Aşağıdaki örnek kod, Kitap içine XML Haritası ekler ve çıktı excel dosyasını olarak kaydeder. Ekran görüntüsü, örnek.xml içinden alınan XML Haritasını gösterir.
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
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
# Create workbook object | |
wb = Workbook() | |
# Add xml map found inside the sample.xml inside the workbook | |
wb.worksheets.xml_maps.add(dataDir + "sample.xml") | |
# Save the workbook in xlsx format | |
wb.save(dataDir + "output_out.xlsx") |