Aspose::Cells::Workbook::ImportXml method

Workbook::ImportXml(const U16String&, const U16String&, int32_t, int32_t) method

Imports/Updates an XML data file into the workbook.

void Aspose::Cells::Workbook::ImportXml(const U16String &url, const U16String &sheetName, int32_t row, int32_t col)
ParameterTypeDescription
urlconst U16String&the url/path of the xml file.
sheetNameconst U16String&the destination sheet name.
rowint32_tthe destination row
colint32_tthe destination column

Examples

Aspose::Cells::Startup();
//The following code imports xml data into worksheet 'Sheet 1' at Cell A1.
   Workbook wb(u"Book1.xlsx");
   U16String val_1 = u"xml.xml";
   U16String val_2 = u"Sheet1";
   wb.ImportXml(val_1, val_2, 0, 0);
   wb.Save(u"output.xlsx");
Aspose::Cells::Cleanup();

See Also

Workbook::ImportXml(const char16_t*, const char16_t*, int32_t, int32_t) method

Imports/Updates an XML data file into the workbook.

void Aspose::Cells::Workbook::ImportXml(const char16_t *url, const char16_t *sheetName, int32_t row, int32_t col)
ParameterTypeDescription
urlconst char16_t*the url/path of the xml file.
sheetNameconst char16_t*the destination sheet name.
rowint32_tthe destination row
colint32_tthe destination column

Examples

Aspose::Cells::Startup();
//The following code imports xml data into worksheet 'Sheet 1' at Cell A1.
   Workbook wb(u"Book1.xlsx");
   wb.ImportXml(u"xml.xml", u"Sheet1", 0, 0);
   wb.Save(u"output.xlsx");
Aspose::Cells::Cleanup();

See Also

Workbook::ImportXml(const Vector <uint8_t>&, const U16String&, int32_t, int32_t) method

Imports/Updates an XML data file into the workbook.

void Aspose::Cells::Workbook::ImportXml(const Vector<uint8_t> &stream, const U16String &sheetName, int32_t row, int32_t col)
ParameterTypeDescription
streamconst Vector <uint8_t>&the xml file stream.
sheetNameconst U16String&the destination sheet name.
rowint32_tthe destination row.
colint32_tthe destination column.

See Also

Workbook::ImportXml(const Vector <uint8_t>&, const char16_t*, int32_t, int32_t) method

Imports/Updates an XML data file into the workbook.

void Aspose::Cells::Workbook::ImportXml(const Vector<uint8_t> &stream, const char16_t *sheetName, int32_t row, int32_t col)
ParameterTypeDescription
streamconst Vector <uint8_t>&the xml file stream.
sheetNameconst char16_t*the destination sheet name.
rowint32_tthe destination row.
colint32_tthe destination column.

See Also