Re: XML File format



Hi Laurent!

> Hello,
>
> Do you have some documentation about the XML file format of a db created
> with gnome-db ?
>

There are no docs on this, specially since I'm rewriting the XML interface.
But, for the moment, it is something like this:

<DATABASE NAME="db_name">
<TABLE NAME="table1" OWNER="user" SQL="create table ....">
  <FIELD NAME="field1" GDA_TYPE="gda_type" TYPE="native_type" SIZE="4"
PRECISION="0" NULLABLE"t or f"/>
  ...
  <ROW>
    <VALUE>1</VALUE>
    ....
  </ROW>
  ....
</TABLE>
</DATABASE>

There will also be a VIEW, PROCEDURE, TYPE ... tag, but for the moment they
are not defined.

I imagine this is for your db_designer app, isn't it? You may want to use
the GDA XML interface to save/load this file. You've got a new widget
GnomeDbXmlViewer which will allow you to display the entire file as well as
modify it at run-time.

Cheers



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