add Methode

add(self, url)

Fügen Sie eine XmlMap durch die URL/den Pfad einer XML-/XSD-Datei hinzu.

Kehrt zurück

XmlMap Objektindex.


def add(self, url):
    ...
ParameterTypBeschreibung
urlstrURL/Pfad einer XML-/XSD-Datei.

Beispiel

Der folgende Code fügt zwei XmlMaps durch eine XSD-Datei und eine XML-Datei hinzu.

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

Siehe auch