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?
hi I am new to matlab, I was trying to chnage an xml file(which is too large it looks like this:
[1x2987899 char ]
but I am interested in having the data [1x2987899 char ] part in (4x46686)matrix format. Can someone please explain how I can do that. Thank you in advance.
06 Feb 2014
Read XML files into MATLAB struct and writes MATLAB data types to XML
Excellent submission! I just managed to reproduce Mohinder's error (No static serializeXML method with appropriate signature exists in Java class com.mathworks.xml.XMLUtils). In my case it was caused by trying to run xmlwrite instead of xml_write.