Re: [gnome-db] database xml



Le mar 29/07/2003 à 20:54, Rodrigo Moya a écrit :
--<CUT>--
> > The database is created with the tables, but with no name (what's the
> > utility of "gda_xml_database_set_name" ?).
> > I expected something like :
> > 
> > <?xml version="1.0"?>
> > <database name="airports">
> > ...
> > </database>
> > 
> hm, what version of libgda are you using?
--<CUT>--

Concerning the fact that there is no name recorded for the database, 
I dig into the code and it seems that effectively, for version 0.90,
it is not yet implemented.
By the way I looked to the CVS version of "gda-xml-database.c" and, in the
function "gda_xml_database_to_string()", this is implemented but I think
that there is a little bug :

494 rodrigo 1.18 	/* create the top node */
495              	doc = xmlNewDoc ("1.0");
496              	root = xmlNewDocNode (doc, NULL, OBJECT_DATABASE, NULL);
497 rodrigo 1.22 	xmlSetProp (root, PROPERTY_NAME, xmldb->priv->name);
498              	xmlSetProp (root, PROPERTY_VERSION, xmldb->priv->name);
499 rodrigo 1.18 	xmlDocSetRootElement (doc, root);
500              

Line 498, PROPERTY_VERSION "is set" to name.

See you

Phil




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