Code covered by the BSD License  

Highlights from
Use Mac OS X XML Plists with MATLAB (Updated Version)

Use Mac OS X XML Plists with MATLAB (Updated Version)

by

 

A updated version of that by John Iversen

loadXMLPlist(fname)
function [S KT] = 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 KT]= XMLPlistToStruct2(text);

Contact us