[Gambas-devel] XML component, expat

ron ronstk at ...124...
Mon Sep 13 11:43:58 CEST 2004


On Monday 13 September 2004 06:35, Daniel Campos wrote:
> 
> > I can't find that message, do you have a copy for me?
> > And is it as source released by daniel?
> 
> 
> It was just an skeleton for an libxml component, It can do nothing
> except loading an xml file and may be parsing it... 
> 
> 
> Regards,
> 
> Daniel Campos
> 

:(

I want something that read a xml file.
in the file there are a elements file with a path

<file>
  <path="/home/ron/data/file1" />
</file>
<file>
  <path="/home/ron/data/file2" />
  <atrib>
    <size=123>
    <date=12/34/56>
  </atrib>
</file>

My application must fill a treeview and when I click on a 'file'
it should check the file exist and when true then present me part 
of it in a textview. Of course in real a bit more.

The expatc is possible but then I must build the DOM object (tree) myself.
I think a hell of a job.

Is libxml giving me a collection 'file' back with size 2
and each file entry have a item 'path' with the value and
a item atrib collection containing the size and date key/values.
I think that is more easy to handle for me.
The old VB app works that way very well.

Your partial done work can help me to start.




More information about the Devel mailing list