Re: [gnome-db] database xml - xml database new from uri
- From: Philippe CHARLIER <p charlier chello be>
- To: gnome-db-list gnome org
- Subject: Re: [gnome-db] database xml - xml database new from uri
- Date: Mon, 25 Aug 2003 19:34:54 +0200
Le sam 23/08/2003 à 22:03, Rodrigo Moya a écrit :
> On Fri, 2003-08-22 at 14:06 +0200, Philippe CHARLIER wrote:
> > Hi,
> >
> > Still in my quest to use xml-database ;-)
> >
> > I managed to create a XML database with tables (with no datas for the
> > moment, but with table properties defined).
> > This XML database is saved to disk with the correct access right.
> > So far, so good.
> >
> > Now I would like to reopen this database to read/add datas to it, ...
> > well for the moment to read it and eventually to add tables or add
> > fields to existing tables.
> >
> > To do that, I used the function "gda_xml_database_new_from_uri()".
> > Before going further, I printed its content as a string to be sure it is
> > correctly loaded (using "gda_xml_database_to_string()").
> >
> > Well, I get an empty database ???
> >
> > <?xml version="1.0"?>
> > <database name="airports" version="0.91.0"/>
> >
> > instead of the data that I have in the file :
> >
> > <?xml version="1.0"?>
> > <database name="airports" version="0.91.0"><tables><table
> > name="airport"><field name ......... </tables></database>
> >
> > Is it normal that "gda_xml_database_new_from_uri()" just create an empty
> > database with the name and uri of the one on the disk (without the
> > tables and tables datas) ?
> >
> no, it's not normal. There is missing code in one function which I am
> adding as we speak. As soon as it's in CVS I'll send a message to the
> list so that you can get it and test it.
>
> sorry for the inconveniences, but thanks to you, we'll have a fully
> working GdaXmlDatabase, so just a bit of patience :-)
>
> cheers
>
Hi, no inconvenience at all ;)
I was looking to the code of "_new_from_uri" and it seems to me that the
problem is on the test "if (table)" always true just after "table =
gda_table_new(name)" in the function
"gda_xml_database_new_table_from_node()".
I wait for your new version and keep you advise ASAP.
Phil
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]