octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ version of regexprep.cc


From: David Bateman
Subject: Re: C++ version of regexprep.cc
Date: Thu, 04 May 2006 09:32:20 +0200
User-agent: Thunderbird 1.5 (Windows/20051201)

Alois Schloegl wrote:
Paul Kienzle wrote:


On May 3, 2006, at 3:51 PM, David Bateman wrote:

Paul Kienzle wrote:

Now it is hitting a 'max recursion limit exceeded' message in
code even uglier than the above.  In addition, I believe this
code relies on the fact that fields in a structure are ordered.

Is this code that matlab runs? If so then perhaps octave maximm recursion limit is smaller than matlabs. I'd suggest it shouldn't be for compatiability. Can this code be used to read the same file under matlab?


So again I declare defeat and say this code cannot be made to
run in Octave.

If it works in matlab for your test file, then I suspect there is something else we should be doing..


Maybe Alois can answer whether it works in matlab. I can't imagine that it does because the example file has attribute names containing ':' characters that need to be converted underscores. I had to modify mbmling in order to do so.


No, I was not able to use xml4mat for loading my XML example files in Matlab either. I've contacted the author of xml4mat, but got only a reply that his e-mail has changed and I sent my question to the new address. So far, I've not received any answer. So, we must assume that xml4mat is not supported anymore.

I was able to read it using a modified version of XMLTREE. I've modified XMLTREE in such a way that the colons ':' are replaced by underscores '_'. Then, the names became valid fieldnames such that <abc:de value> converts to xml.abc_de = 'value'. An alternative solution could be, that the colons are used to define subfields such that the results is xml.abc.de = 'value'. Perhaps, this would be a nicer solution.

David, which changes did you apply to mbmling.m?

None, don't even know what the function mbmling.m is ... I just supplied fast versions of regexp and mat2cell and Paul did the rest.

D.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]