I would ask Marc to provide the m-files.
Seems as if he has dumped the project.
Seems to be great work - stable through releases, well structured and with simple interfaces. We have to test if it suits our needs, as we would have to exchange the XML between Matlab and Java...
An option to work further on the code would be great, Marc!
03 Jul 2013
Conversion of MATLAB data types to XML and vice versa.
I have now tested this submission all the way up to R2013a. It works. The warnings people are talking about are just that "warnings". It still works.
Other than cluttering up the command window or the DOS window for the stand alone executables, functionally I have no issues.
Though I would agree that someone should generate up to date .p files but then I am not sure if it would make it unusable for people with earlier versions of Matlab.
If the author doesn't mind sharing the source code, that would solve the problem too.
Of course, best possible solution is for Matlab to include this functionality with built-in functions.
This tool worked EXCELLENT after putting in a few modifications. I am exporting / inporting XMLs from an adobe acrobat file so formatting was important. The main things causing problems were the calls to upper() and newline / margin management.
Heres my workarounds (added removal of newlines from pdfs exported xml (this code needs solid containers e.g. <c>something</c>)
%< Récupération du fichier dans un string
fid = fopen(arg, 'r');
F = fread(fid);
%Loop through. Find the sequence \n> and remove newline.
i = 1;
numChars = length(F);
while i < numChars
if F(i) == 10 %char(10) is \n
if F(i+1) == 62 %char(62) is >
F(i:end-1) = F(i+1:end); %Shift left
numChars = numChars-1;
i = i+1;
%Truncate the extra bits on the end
F = F(1:numChars);
s = char(F');
And then I removed all calls to upper (except on strcmps / case switches) and set
margin = '';
I am trying to use your function but I got this message. Is there any way to fix this or should I divide the file in smaller parts?
??? Maximum recursion limit of 500 reached. Use
to change the limit. Be aware that exceeding your available stack
crash MATLAB and/or your computer.
Error in ==> num2cell