add method

add

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

Returns

XmlMap object index.

def add(self, url):
    ...
ParameterTypeDescription
urlstrurl/path of a xml/xsd file.

Example

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

from aspose.cells import Workbook

wb = Workbook()
xmlMapCollection = wb.worksheets.xml_maps
# 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