octave-maintainers
[Top][All Lists]
Advanced

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

Re: XML tools for Octave


From: Schloegl Alois
Subject: Re: XML tools for Octave
Date: Sat, 10 Jun 2006 11:01:21 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.2-cvs)

Quoting David Bateman <address@hidden>:

Schloegl Alois wrote:

Quoting David Bateman <address@hidden>:

As a fairly dumb conversion of xmldata to an oct-file (though I tried to
replace C strings with the C++ std::string class), how does the attached
work. Basically, I've just tested to the point where is compiles and no
further. I also think there is a serious problem in the original code in
that malformed input might cause a seg-fault. Consider the example
"</xml>v</xml>" that seems to me will not create the struct to contain
the field and then try to assign to it. I tried to fix this.

The conversion is very direct and there are ugly multiple assignments to
the return value list. It would be better to get rid of these. Help
strings etc might also be improved..

D.



When I tried to apply it to a large XML file, it reads only the first
elements.

Oppps.. I see. Try the attached version..

D.



This works very well. Although the OCT version is not as fast as the MEX version, it works also for a case, were the MEX function causes a bad crash.

Andy, what do you think about the solution?
It does not recognize the example 1) as an invalid XML. How big of a problem is this?


   Alois






reply via email to

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