Add

XmlMapCollection.Add method

Aggiungi aXmlMap dall’URL/percorso di un file xml/xsd.

public int Add(string url)
ParametroTipoDescrizione
urlStringurl/percorso di un file xml/xsd.

Valore di ritorno

XmlMap indice oggetto.

Esempi

Il codice seguente ne aggiunge dueXmlMap da un file xsd e un file xml.

Workbook wb = new Workbook();

XmlMapCollection xmlMapCollection = wb.Worksheets.XmlMaps;

//Aggiungi un <see cref="T:Aspose.Cells.XmlMap" /> tramite un file xsd.
xmlMapCollection.Add("schema.xsd");

//Aggiungi un <see cref="T:Aspose.Cells.XmlMap" /> tramite un file xml.
xmlMapCollection.Add("xml.xml");

wb.Save("twoXmlMaps.xlsx");

Guarda anche