metodo add

add(url)

Aggiungere un XmlMap dall’URL/percorso di un file xml/xsd.

ritorna

XmlMap indice oggetto.

def add(self, url):
    ...
ParametroTipoDescrizione
urlstrurl/percorso di un file xml/xsd.

Esempio

Il codice seguente aggiunge due XmlMap tramite un file xsd e un file xml.

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")

Guarda anche