export_xml method

export_xml

Export XML data linked by the specified XML map.

def export_xml(self, map_name, path):
    ...
ParameterTypeDescription
map_namestrname of the XML map that need to be exported
pathstrthe export path

Example

The following code exported the data linked by the first XmlMap.

from aspose.cells import Workbook

wb = Workbook("Book1.xlsx")
# Make sure that the source xlsx file contains a XmlMap.
xmlMap = wb.worksheets.xml_maps[0]
wb.export_xml(xmlMap.name, "output.xml")

export_xml

Export XML data.

def export_xml(self, map_name, stream):
    ...
ParameterTypeDescription
map_namestrname of the XML map that need to be exported
streamio.RawIOBasethe export stream

See Also