Importa XML nella cartella di lavoro di Excel

Importa mappa XML utilizzando Microsoft Excel

Lo screenshot seguente mostra come importare XML Map utilizzando Microsoft Excel.

cose da fare:immagine_alt_testo

Importa mappa XML utilizzando Aspose.Cells

Il codice di esempio seguente mostra come utilizzare il metodoCartella di lavoro.ImportXml() . Genera ilfile excel di output come mostrato in questo screenshot.

cose da fare:immagine_alt_testo
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Create a workbook
Workbook workbook = new Workbook();
// URL that contains your XML data for mapping
string XML = "http://www.aspose.com/docs/download/attachments/434475650/sampleXML.txt";
// Import your XML Map data starting from cell A1
workbook.ImportXml(XML, "Sheet1", 0, 0);
// Save workbook
workbook.Save(dataDir + "output_out.xlsx");

Argomenti avanzati