Code covered by the BSD License  

Highlights from
Use Mac OS X XML Plists with MATLAB

Use Mac OS X XML Plists with MATLAB


John Iversen (view profile)


17 Jun 2005 (Updated )

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

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 <>)

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

S = XMLPlistToStruct(text);

Contact us