Hello dv, I am porting a very small app to the 2.0 platform. This is a piece of code that was working fine with the old libxml : =========================================== doc = xmlParseFile (full_path); if (doc == NULL) { g_warning ("File not found or file with errors [%s]", full_path); return NULL; } if (doc->root == NULL) { g_warning ("Invalid xml File, tree empty [%s]", full_path); xmlFreeDoc (doc); return NULL; } =================================== it is now failing in doc->root == NULL and giving a the warning : "Invalid xml File, tree empty [/usr/share/glade2/widgets/catalog.xml]" For some reason doc->root is now NULL. It is the same xml file that I was using with the old xml. Libxml is not generating any warnings at all. Do you have any idea on what can be wrong ? Enclosed you will find the xml file in question. thanks, Chema --------------------------- Here is my compile line in case you need it : chema sarados src]$ make make[1]: Entering directory `/home/chema/cvs/glade2/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/gnome/head/INSTALL/include/gtk-2.0 -I/gnome/head/INSTALL/lib/gtk-2.0/include -I/gnome/head/INSTALL/include/glib-2.0 -I/gnome/head/INSTALL/lib/glib-2.0/include -I/gnome/head/INSTALL/include/pango-1.0 -I/gnome/head/INSTALL/include/atk-1.0 -I/gnome/head/INSTALL/include/libxml -I/gnome/head/INSTALL/include -I/gnome/head/INSTALL/include/gnome/2 -I/gnome/head/INSTALL/include/gconf/2 -I../intl -I../intl -g -O2 -c glade-project-window.c glade-project-window.c: In function `glade_project_window_create': glade-project-window.c:218: warning: passing arg 3 of `gtk_signal_connect_full' from incompatible pointer type /bin/sh ../libtool --mode=link gcc -g -O2 -o glade2 main.o glade-project.o glade-parameter.o glade-placeholder.o glade-project-view.o glade-project-window.o glade-widget-class.o glade-xml-utils.o glade-palette.o glade-cursor.o glade-property.o glade-property-class.o glade-property-view.o glade-widget.o glade-catalog.o glade-choice.o glade-editor.o -L/gnome/head/INSTALL/lib -L/usr/X11R6/lib -lgnomeui-2 -lgnome-2 -lbonobo-2 -lgtk-x11-1.3 -lgdk-x11-1.3 -lXext -lpangox -lX11 -latk -lpango -lgdk_pixbuf-1.3 -lgobject-1.3 -lgmodule-1.3 -ldl -lgconf-2 -loaf-2 -lORBit-2 -lIIOP-2 -lORBitutil-2 -lnsl -lm -lglib-1.3 -lxml2 -lz -lart_lgpl gcc -g -O2 -o glade2 main.o glade-project.o glade-parameter.o glade-placeholder.o glade-project-view.o glade-project-window.o glade-widget-class.o glade-xml-utils.o glade-palette.o glade-cursor.o glade-property.o glade-property-class.o glade-property-view.o glade-widget.o glade-catalog.o glade-choice.o glade-editor.o -L/gnome/head/INSTALL/lib -L/usr/X11R6/lib /gnome/head/INSTALL/lib/libgnomeui-2.so -L/usr/lib /gnome/head/INSTALL/lib/libbonoboui-2.so /gnome/head/INSTALL/lib/libgnomecanvas-2.so /gnome/head/INSTALL/lib/libpangoft2.so /usr/lib/libfreetype.so /gnome/head/INSTALL/lib/libgnome-2.so /gnome/head/INSTALL/lib/libgnomesupport-1.3.so /gnome/head/INSTALL/lib/libgnomevfs.so /gnome/head/INSTALL/lib/libbonobo-2.so /gnome/head/INSTALL/lib/libgthread-1.3.so -lpthread /gnome/head/INSTALL/lib/libORBitCosNaming-2.so /gnome/head/INSTALL/lib/libgtk-x11-1.3.so /gnome/head/INSTALL/lib/libgdk-x11-1.3.so -lXext /gnome/head/INSTALL/lib/libpangox.so -lX11 /gnome/head/INSTALL/lib/libatk.so /gnome/head/INSTALL/lib/libpango.so /gnome/head/INSTALL/lib/libgdk_pixbuf-1.3.so /gnome/head/INSTALL/lib/libgconf-2.so /gnome/head/INSTALL/lib/libgobject-1.3.so /gnome/head/INSTALL/lib/liboaf-2.so /gnome/head/INSTALL/lib/libgmodule-1.3.so -ldl /usr/lib/libpopt.so /gnome/head/INSTALL/lib/libORBit-2.so /gnome/head/INSTALL/lib/libIIOP-2.so /gnome/head/INSTALL/lib/libORBitutil-2.so -lnsl /gnome/head/INSTALL/lib/libglib-1.3.so /gnome/head/INSTALL/lib/libxml2.so -lm -lz /gnome/head/INSTALL/lib/libart_lgpl.so -Wl,--rpath -Wl,/gnome/head/INSTALL/lib -Wl,--rpath -Wl,/gnome/head/INSTALL/lib make[1]: Leaving directory `/home/chema/cvs/glade2/src' [chema sarados src]$
Attachment:
catalog.xml
Description: Text Data