GDBus: ignore qualified XML tags and attributes
authorRyan Lortie <desrt@desrt.ca>
Mon, 28 Oct 2013 22:27:29 +0000 (15:27 -0700)
committerRyan Lortie <desrt@desrt.ca>
Mon, 28 Oct 2013 22:28:51 +0000 (15:28 -0700)
Ignore qualified (in the XML namespace sense) tags and attributes when
parsing D-Bus introspection XML.

This will allow people to add custom tags and attributes to their D-Bus
interfaces without tripping up GDBus.

https://bugzilla.gnome.org/show_bug.cgi?id=665634

gio/gdbusintrospection.c

index b05f26f..c5f80ec 100644 (file)
@@ -1789,7 +1789,7 @@ g_dbus_node_info_new_for_xml (const gchar  *xml_data,
 
   data = parse_data_new ();
   context = g_markup_parse_context_new (parser,
-                                        0,
+                                        G_MARKUP_IGNORE_QUALIFIED,
                                         data,
                                         (GDestroyNotify) parse_data_free);