Find the Root Element Name of XML Map
Possible Usage Scenarios
You can find the Root Element Name of Xml Map using Aspose.Cells for Python via .NET with XmlMap.root_element_name property. The following screenshot shows the root element name of the XML Map in Microsoft Excel.
Sample Code
The following sample code loads the sample Excel file and accesses the first XML Map and prints its XmlMap.root_element_name property. Please see the console output of the sample code given below.
from aspose.cells import Workbook | |
# 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 | |
wb = Workbook("sampleRootElementNameOfXmlMap.xlsx") | |
# Access first Xml Map inside the Workbook | |
xmap = wb.worksheets.xml_maps[0] | |
# Print Root Element Name of Xml Map on Console | |
print("Root Element Name Of Xml Map: " + xmap.root_element_name) |
Console Output
Root Element Name Of Xml Map: MiscData