XmlMapCollection.Add

XmlMapCollection.Add method

Add a XmlMap by the url/path of a xml/xsd file.

public int Add(string url)
ParameterTypeDescription
urlStringurl/path of a xml/xsd file.

Return Value

XmlMap object index.

Examples

using System;
using Aspose.Cells;

namespace AsposeCellsExamples
{
    public class XmlMapCollectionMethodAddWithStringDemo
    {
        public static void Run()
        {
            Workbook wb = new Workbook();
            
            XmlMapCollection xmlMapCollection = wb.Worksheets.XmlMaps;
            
            // Add XML maps using schema and XML files
            xmlMapCollection.Add("schema.xsd");
            xmlMapCollection.Add("xml.xml");
            
            wb.Save("twoXmlMaps.xlsx");
        }
    }
}

See Also