WorkbookImportXml Method (String, String, Int32, Int32)

Imports/Updates an XML data file into the workbook.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 22.5.0.0 (22.5.0)
Syntax
public void ImportXml(
	string url,
	string sheetName,
	int row,
	int col
)

Parameters

url
Type: SystemString
the url/path of the xml file.
sheetName
Type: SystemString
the destination sheet name.
row
Type: SystemInt32
the destination row
col
Type: SystemInt32
the destination column
Examples
The following code imports xml data into worksheet 'Sheet 1' at Cell A1.
Workbook wb = new Workbook("Book1.xlsx");

wb.ImportXml("xml.xml", "Sheet1", 0, 0);

wb.Save("output.xlsx");
See Also