[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: XML tools for Octave
From: |
David Bateman |
Subject: |
Re: XML tools for Octave |
Date: |
Sat, 10 Jun 2006 13:54:30 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.6-7.6.20060mdk (X11/20050322) |
Schloegl Alois wrote:
> 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.
Its not as fast since there are multipe assignments to an oct-value.
Leaving the assignment till the end would be a better solution and much
faster.
>
> 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
>
>
>
>
>
- Re: XML tools for Octave, Alois Schloegl, 2006/06/08
- Re: XML tools for Octave, David Bateman, 2006/06/08
- Re: XML tools for Octave, Alois Schloegl, 2006/06/08
- Re: XML tools for Octave, David Bateman, 2006/06/08
- Re: XML tools for Octave, Schloegl Alois, 2006/06/09
- Re: XML tools for Octave, David Bateman, 2006/06/09
- Re: XML tools for Octave, David Bateman, 2006/06/09
- Re: XML tools for Octave, Schloegl Alois, 2006/06/10
- Re: XML tools for Octave,
David Bateman <=
- Re: XML tools for Octave, Andy Adler, 2006/06/10
- Re: XML tools for Octave, Alois Schloegl, 2006/06/12
- Re: XML tools for Octave, Andy Adler, 2006/06/12
- Re: XML tools for Octave, Alois Schloegl, 2006/06/13
- Re: XML tools for Octave, Andy Adler, 2006/06/13
- Re: XML tools for Octave, Schloegl Alois, 2006/06/21
- Re: XML tools for Octave, Andy Adler, 2006/06/28
- Re: XML tools for Octave, John W. Eaton, 2006/06/28
- Re: XML tools for Octave, Bill Denney, 2006/06/29
- Re: XML tools for Octave, Andy Adler, 2006/06/29