Share via


Workbook.SaveAsXMLData(String, XmlMap) Method

Definition

Exports the data that has been mapped to the specified XML schema map to an XML data file.

public:
 void SaveAsXMLData(System::String ^ Filename, Microsoft::Office::Interop::Excel::XmlMap ^ Map);
public void SaveAsXMLData (string Filename, Microsoft.Office.Interop.Excel.XmlMap Map);
abstract member SaveAsXMLData : string * Microsoft.Office.Interop.Excel.XmlMap -> unit
Public Sub SaveAsXMLData (Filename As String, Map As XmlMap)

Parameters

Filename
String

The name of the file to be saved. You can include a full path; if you do not, Microsoft Office Excel saves the file in the current folder.

Map
XmlMap

An XmlMap object. The schema map to apply to the data.

Remarks

This method will result in a run-time error if Excel cannot export data with the specified schema map. To check whether Excel can use the specified schema map to export data, use the IsExportable property.

Applies to