Find the Root Element Name of XML Map

Possible Usage Scenarios

You can find the Root Element Name of Xml Map using Aspose.Cells with XmlMap.RootElementName property. The following screenshot shows the root element name of the XML Map in Microsoft Excel.

todo:image_alt_text

Sample Code

The following sample code loads the sample Excel file and accesses the first XML Map and prints its XmlMap.RootElementName property. Please see the console output of the sample code given below.

// 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
Workbook wb = new Workbook("sampleRootElementNameOfXmlMap.xlsx");
//Access first Xml Map inside the Workbook
XmlMap xmap = wb.Worksheets.XmlMaps[0];
//Print Root Element Name of Xml Map on Console
Console.WriteLine("Root Element Name Of Xml Map: " + xmap.RootElementName);

Console Output

Root Element Name Of Xml Map: MiscData