Aspose::Cells::Workbook::ExportXml method

Workbook::ExportXml(const U16String&, const U16String&) method

Export XML data linked by the specified XML map.

void Aspose::Cells::Workbook::ExportXml(const U16String &mapName, const U16String &path)
ParameterTypeDescription
mapNameconst U16String&name of the XML map that need to be exported
pathconst U16String&the export path

Examples

Aspose::Cells::Startup();
//The following code exported the data linked by the first XmlMap.
Workbook wb(u"Book1.xlsx");

//Make sure that the source xlsx file contains a XmlMap.
XmlMap xmlMap = wb.GetWorksheets().GetXmlMaps().Get(0);

U16String val = u"output.xml";
wb.ExportXml(xmlMap.GetName(), val);
Aspose::Cells::Cleanup();

See Also

Workbook::ExportXml(const char16_t*, const char16_t*) method

Export XML data linked by the specified XML map.

void Aspose::Cells::Workbook::ExportXml(const char16_t *mapName, const char16_t *path)
ParameterTypeDescription
mapNameconst char16_t*name of the XML map that need to be exported
pathconst char16_t*the export path

Examples

Aspose::Cells::Startup();
//The following code exported the data linked by the first XmlMap.
Workbook wb(u"Book1.xlsx");

//Make sure that the source xlsx file contains a XmlMap.


wb.ExportXml(u"XmlMapName", u"output.xml");
Aspose::Cells::Cleanup();

See Also

Workbook::ExportXml(const U16String&) method

Export XML data.

Vector<uint8_t> Aspose::Cells::Workbook::ExportXml(const U16String &mapName)
ParameterTypeDescription
mapNameconst U16String&name of the XML map that need to be exported

See Also

Workbook::ExportXml(const char16_t*) method

Export XML data.

Vector<uint8_t> Aspose::Cells::Workbook::ExportXml(const char16_t *mapName)
ParameterTypeDescription
mapNameconst char16_t*name of the XML map that need to be exported

See Also