Then, import the subset of data using readtable with the import options object.įirst, create an XMLImportOptions object by using detectImportOptions to detect aspects of your XML file. Specify the subset of variables to import by modifying the import options object. To display a preview of the table, use preview VariableOptions: Īccess VariableOptions sub-properties using setvaropts/getvaropts Variable Import Properties: Set types by name using setvartype DelimitedTextImportOptions with properties: