parsing a tree like structure



Hi all
I'm wondering if there is a nice way to parse this data, as in is
there any module that could handle this type of data, as in the was it
is presented? so that I can repeat is itn a tree like structure in
HTML ?

so I can pic out the tree like structure and replicate it in some way
so that I can put it in an array or into a database ?? so i could pick
out the data I want.

\==+Interface :
|----Link State.........................................Down
\==+SCSI Interface :
|----Name............................................vmhba1
|----Console Name....................................scsi1
|----Queue Depth.....................................4096
\==+PCI Device :
|----Bus..........................................0x0b
|----Slot.........................................0x00
|----Function.....................................0x00
\==+Scsi Stats :
|----Commands.....................................48632378
|----Blocks Read..................................1862894689
|----Blocks Written...............................858120919
|----Aborts.......................................0

Thanks in advance
Pat
.



Relevant Pages

  • Re: Parsing and storing formulas
    ... you could easily store different views/stored ... >I was wondering how I can parse a mathematical formula in a storable way. ... > be stored for in the database. ... > The second idea is to represent the formula as a tree. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Parsing and storing formulas
    ... >I was wondering how I can parse a mathematical formula in a storable way. ... > be stored for in the database. ... > The second idea is to represent the formula as a tree. ... compiler/interpreter/expression evaluator does. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: algorithm help
    ... So coming out of the database, I get an array which looks like this: ... I would like to put this into an array which represents the following ... Thats how I at least got a picture of such a tree structure for my application. ... I'd say that making a memory structure analogous to the database structure is the only way to get a one-to-many node going. ...
    (comp.lang.php)
  • Re: recursive function calling by reference
    ... I'm using a recursive function to get an array of ID from a database passing ... Retrieving a tree from the database in the manner ...
    (comp.lang.php)
  • Parsing and storing formulas
    ... I was wondering how I can parse a mathematical formula in a storable way. ... be stored for in the database. ... Anyway this tree will be hard to implement. ...
    (microsoft.public.dotnet.languages.csharp)

Loading