2.7.12 expXML


Brief Information

Export Worksheet data as XML file

Additional Information

Minimum Origin Version Required: 2020b

Command Line Usage

expXML fname:=D:\Sheet1.xml;

expXML fname:=D:\Sheet1.xml exclude:=0 tag:=1;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Worksheet iw

Input

Worksheet

<active>
Specify the input workbook where the worksheet(s) you want to exported exists. By default, current workbook will be selected.
File Path fname

Input

string

fname$
Specify the output file path and file name.
Order Type order

Input

int

1
Specify the order type in the export XML file.

Option list:

  • 0=ColumnMajor : Column Major
  • 1=RowMajor: Row Major
Exclude Empty Node exclude

Input

int

1
Specify whether exclude empty node in the XML
  • 0: false
  • 1: true
Tag Name tag

Input

int

1
Specify the Short Name or Designation as tag name

Option list:

  • 0: Column Short Name
  • 1: Column Designation

Description

This X-Function can be used to export current worksheet as an XML file.


Related X-Functions

expASC, expNITDM