Original commit message from CVS:
format the outputted reg.xml for libxml2. if anything causes your xml probs in the
future, this is probably it...
xmlNewChild (factorynode, NULL, "name", gst_object_get_name (GST_OBJECT (factory)));
element = gst_elementfactory_create(factory,"element");
+ fprintf(stderr,"adding factory %s\n",
+ gst_object_get_name (GST_OBJECT (factory)));
if (element == NULL) {
fprintf(stderr,"couldn't construct element from factory %s\n",
gst_object_get_name (GST_OBJECT (factory)));
}
#else
+#ifdef HAVE_LIBXML2
+ /* indent the document */
+ if (xmlSaveFormatFile(destfile, *doc, 1) <= 0) {
+#else
if (xmlSaveFile(destfile, *doc) <= 0) {
+#endif
g_print("Cannot save new registry to `%s'", destfile);
error_perm();
}