export_xml方法
export_xml(self, map_name, path)
导出由指定的 XML 映射链接的 XML 数据。
def export_xml(self, map_name, path):
...
范围 | 类型 | 描述 |
---|---|---|
map_name | str | 需要导出的 XML 映射的名称 |
path | str | 导出路径 |
例子
以下代码导出了第一个 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(self, map_name, stream)
导出 XML 数据。
def export_xml(self, map_name, stream):
...
范围 | 类型 | 描述 |
---|---|---|
map_name | str | 需要导出的 XML 映射的名称 |
stream | io.RawIOBase | 出口流 |