Avraham (Rami) Aizenbud

אברהם (רמי) איזנבוד

Home
Research
My Group
CV
Publications
Talks
Teaching
Service
Other
Links

XML Reader

Here you can find some Matlab scripts for working with XML.

The function XmlLoad reads an XML file into a Matlab variable of type struct, and the function XmlSave saves matlab variable of type struct into an XML file.

Remarks

1. The function XmlLoad uses widely the function str2num. In some Matlab versions, it is implemented via eval. This makes the above function somewhat dangerous to use. Be careful!

2. If you will use those function back and forth you might change the input. Here are some of the reasons:

    a) The function XmlLoad ignores everything which is not an element or an attribute.

    b) The function XmlSave ignores any field which is not a struct or a string or a number.

    c) The function XmlSave saves attributes instead of simple elements.