[Top][All Lists]

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

Re: any suggestions for reading in a XML file?

From: Juan Pablo Carbajal
Subject: Re: any suggestions for reading in a XML file?
Date: Wed, 28 Nov 2012 15:29:54 +0100

On Wed, Nov 28, 2012 at 1:21 PM,  <address@hidden> wrote:
> Dear all,
> From the io-1.0.20 I understand that reading an xml file is not yet 
> implemented. I started writing a script to read in an xml file like
> <tag1 spec1=x spec2=y>
>  <tag2>
>   <tag3>blah</tag3>
>   <tag3>blahblah</tag3>
>  </tag2>
> </tag1>
> For ease of use and generality I would like to read in all values as strings. 
> As an example I'd like to end up with a
> structure.tag1.tag2.tag3="blah"
> But since there can be several <tag3>s, I think I need to put them together 
> into
> structure.tag1.tag2.tag3{1,1:2}  (or any other size).
> This however prohibits me of creating further sub groups like .tag3.tag4, 
> since tag3 is now an 'end station', being a cell.
> Is there a way to make tag3 contain subgroups and ALSO give assign a value or 
> matrix to tag3?
> My choice for a struct is based on my preference for 'easy scrolling' through 
> the structure. Once the XML file is read in, I call the structure.<TAB> on 
> the command line to see what its subgroups are.
> Any suggestions are welcome on the approach or philosophy (or anything).
> _______________________________________________
> Help-octave mailing list
> address@hidden

You can wrapp around python librarie sfor parsing xml like etree and
such. Check the package geometry in the io subpackage, I am using (from Inkscape) to read svg files (basically an xml)


reply via email to

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