No BSD License  

Highlights from
XML Toolbox

  • toolbox_test function toolbox_test
  • strsplit.mfunction cstr = strsplit(strarr, ch)
  • unblank.m% UNBLANK(S) removes leading and trailing blanks from string S.
  • xml_format.mXML_FORMAT Convert a Matlab variable or struct into an XML string.
  • xml_formatany.mXML_FORMATANY Formats a matlab variable into an XML string.
  • xml_help.m
  • xml_load.mXML_LOAD Loads XML file and return contents as Matlab structure or variable
  • xml_parse.mXML_PARSE parses XML string and returns corresponding Matlab structure.
  • xml_parseany.mXML_PARSEANY parses XML strings and convert content into Matlab structure
  • xml_save.mXML_SAVE saves Matlab variables and data structures as XML
  • View all files

XML Toolbox


Marc Molinari (view profile)


17 Dec 2003 (Updated )

Conversion of MATLAB data types to XML and vice versa.

%XML_LOAD Loads XML file and return contents as Matlab structure or variable
% SYNTAX     V = xml_load( filename )
%            V = xml_load( filename, attswitch )
%  filename   filename of xml file to load (if extension .xml is omitted,
%             xml_load tries to append it if the file cannot be found).
%             This file should have been saved with xml_save().
%             If it's a non-Matlab XML file, please use e.g.
%             xmlstr = fileread(filename); V = xml_parseany(xmlstr);
%  attswitch  optional, default='on':
%             'on' takes attributes idx,size,type into account for
%                  creating corresponding Matlab data types
%             'off' ignores attributes in XML element headers
%   V        Matlab structure or variable
%   xml_save, xml_format, xml_formatany, xml_parse, xml_parseany, xml_help, (xmlread, xmlwrite)
% Copyright (C) 2002-2005, University of Southampton
% Author: Dr Marc Molinari <>
% $Revision: 1.1 $ $Date: 2005/04/15 17:12:14 $ $Tag$

Contact us