Workbook.ExportXml

ExportXml(string, string)

Export XML data linked by the specified XML map.

public void ExportXml(string mapName, string path)
ParameterTypeDescription
mapNameStringname of the XML map that need to be exported
pathStringthe export path

Examples

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

Workbook wb = new Workbook("Book1.xlsx");

//Make sure that the source xlsx file contains a XmlMap.
XmlMap xmlMap = wb.Worksheets.XmlMaps[0];

wb.ExportXml(xmlMap.Name, "output.xml");

See Also


ExportXml(string, Stream)

Export XML data.

public void ExportXml(string mapName, Stream stream)
ParameterTypeDescription
mapNameStringname of the XML map that need to be exported
streamStreamthe export stream

See Also