A great tool! I recently found a little glitch with number recognition.
When you have something like:
This is correctly identified as vector, however if you use
you get NaN as output.
In the str2var function it is distinguished between attribute and tag. If you have a tag the str2num function is used, which works. For an attribute the str2double function is used, which does not accept something in form of [1,2] as valid number.
Why are this two different functions used? Are there any side effects if you always use the str2num function?
Brilliant product, saved me a lot of time.
It create a really neat struct that is easy to navigate. And the gen_object_display.m script that shows the struct was invaluable when reading xml-files from other sources.
I had some issues with the error-reports (catch-statements)when using xml_read. Changing the debug varaible (line 89) to true removed the issue.
05 Aug 2013
Read XML files into MATLAB struct and writes MATLAB data types to XML