add method
add(self, url)
Add a XmlMap by the url/path of a xml/xsd file.
Returns
XmlMap object index.
def add(self, url):
    ...
| Parameter | Type | Description | 
|---|---|---|
| url | System.String | url/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
- module aspose.cells
- class XmlMap
- class XmlMapCollection