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

The following code adds two XmlMaps by a xsd file and a xml file.

Workbook wb = new Workbook();

XmlMapCollection xmlMapCollection = wb.Worksheets.XmlMaps;

//Add a XmlMap by a xsd file.
xmlMapCollection.Add("schema.xsd");

//Add a XmlMap by a xml file.
xmlMapCollection.Add("xml.xml");

wb.Save("twoXmlMaps.xlsx");

See Also