Code covered by the BSD License  

Highlights from
Use Mac OS X XML Plists with MATLAB

Use Mac OS X XML Plists with MATLAB

by

 

17 Jun 2005 (Updated )

Utilities to convert Mac OS X native storage format (XML Property Lists) for use in MATLAB.

loadXMLPlist(fname)
function S = loadXMLPlist(fname)
% loadXMLPlist  Load and parse Mac OSX XML property list into a structure
%
%   S = loadXMLPlist(filename)
%
%       Returns hierarchical structure S from property list in filename
%
%   See XMLPlistToStruct.m for details.
%
%   JRI 3/16/05 (John R. Iversen <iversen@nsi.edu>)

fid = fopen(fname,'r');
text = char(fread(fid,inf,'uchar'))'; %read as single string
fclose(fid);

S = XMLPlistToStruct(text);

Contact us