Rank: 20943 based on 0 downloads (last 30 days) and 0 file submitted
photo

Neilen Marais

E-mail
Company/University
EMSS Magus

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Neilen
Updated File Comments Rating
03 Feb 2009 xml_io_tools Read XML files into MATLAB struct and writes MATLAB data types to XML Author: Jaroslaw Tuszynski

Hi,

This is a great tool, but I'm having a problem. I'm trying to use it to save/load figure style structures. The problem is that the style structures include many empty strings. xml_write saves these as empty tags. When xml_read load the xml, empty tags are converted to empty matrices.

Ie. if I save an empty string ('') to xml, and load, I get an empty matrix ([]). This makes , e.g.

xml_write('figstyle.xml', figstyle);
figstyle_from_xml = xml_read('figstyle.xml')
set(gcf,figstyle_from_xml);

complain. However, converting all empty matrices to empty strings when loading would not work, since some of the struct members _should_ be empty matrices.

I hope this could easily be fixed :)

Thanks
Neilen

Contact us