output human-readable xml
authorAndy Wingo <wingo@pobox.com>
Wed, 26 Dec 2001 06:58:25 +0000 (06:58 +0000)
committerAndy Wingo <wingo@pobox.com>
Wed, 26 Dec 2001 06:58:25 +0000 (06:58 +0000)
Original commit message from CVS:
output human-readable xml

tools/gstreamer-compprep.c

index 40eb151..d079da6 100644 (file)
@@ -42,7 +42,7 @@ int main(int argc,char *argv[]) {
       xmlNewChild (factorynode, NULL, "name", gst_object_get_name (GST_OBJECT (factory)));
 
       element = gst_elementfactory_create(factory,"element");
-      fprintf(stderr,"adding factory %s\n", 
+      fprintf(stdout,"adding factory %s\n", 
               gst_object_get_name (GST_OBJECT (factory)));
       if (element == NULL) {
         fprintf(stderr,"couldn't construct element from factory %s\n", 
@@ -100,7 +100,11 @@ int main(int argc,char *argv[]) {
     }
   }
 
+#ifdef HAVE_LIBXML2
+  xmlSaveFormatFile(GST_CONFIG_DIR "/compreg.xml",doc,1);
+#else
   xmlSaveFile(GST_CONFIG_DIR "/compreg.xml",doc);
+#endif
 
   return 0;
 }