octave-maintainers
[Top][All Lists]
Advanced

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

Re: XML tools for Octave


From: Bill Denney
Subject: Re: XML tools for Octave
Date: Thu, 29 Jun 2006 06:53:04 -0400
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

Andy Adler wrote:
I'm trying to write this. My idea is that XML like this
<a b="c" d="e"> text <f g="h"/> more text <f>data</f> </a>

will load into octave as

    v= xmlparse( filename)

with:
    v.a.ATTS.b      => "c"
    v.a.ATTS.d      => "e"
    v.a.TEXT        => " text  more text  "
    v.a.f(1).ATTS.g => "h"
    v.a.f(2).TEXT   => "data"
Shouldn't it parse as something more like

v.a.ATTS.b = "c"
v.a.ATTS.d = "e"
v.a.CHILD{1} = " text "
v.a.CHILD{2}.f.ATTS.g => "h"
v.a.CHILD{3} = " more text  "
v.a.CHILD{4}.f.CHILD{1}   => "data"

because otherwise you lose the fact that <f g="h"/> is between " text " and " more text ".

Bill



reply via email to

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