octave-maintainers
[Top][All Lists]
Advanced

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

Re: XML tools for Octave


From: Alois Schloegl
Subject: Re: XML tools for Octave
Date: Thu, 08 Jun 2006 17:19:43 +0200
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)

David Bateman wrote:

Alois Schloegl wrote:
There is another XML toolbox available from Peter Rydesäter
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=1742&objectType=FILE


It's licensed with GPL, and has clean and simple code. The disadvantages
is, it uses a MEX files. However, the C sources are just 267 lines. Has
anyone the time to check whether this can be converted into an OCT file?

An overview of possible approaches for implementing XML support in
Octave is available at
The Octave-Wiki contains now a list of possible XML tools
http://wiki.octave.org/wiki.pl?XML-tools-for-Octave


Cheers,
  Alois


About 3/4 of the code would need no change. The rest seems relatively
straight forward to convert to an oct-file. Is it worth converting? Does
it perform well as an xml parser in matlab?

D.

In terms of speed, the performance is very good. A 500kB file with over 2000 elements is done in less than a second, 3 times faster then XMLTREE and much, much faster than XML4MAT.

It does not complain about parsing the non-xml example 1) from http://www.cae.wisc.edu/pipermail/octave-maintainers/2006-May/000168.html.
The items 2)-4)  are handled correctly.

Considering the size of the code, there will be hardly a better method for reading XML data. Therefore, I think it would be worth to convert it to an oct-file.

A.








reply via email to

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