GDBusNodeInfo: the XML string must contain exactly one node element
authorRui Matos <tiagomatos@gmail.com>
Tue, 10 Jul 2012 09:37:56 +0000 (11:37 +0200)
committerRui Matos <tiagomatos@gmail.com>
Wed, 11 Jul 2012 01:27:29 +0000 (03:27 +0200)
Make the documentation clear about this.

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

gio/gdbusintrospection.c

index a97fa43..e24e5a7 100644 (file)
@@ -1755,6 +1755,9 @@ parser_error (GMarkupParseContext *context,
  *
  * Parses @xml_data and returns a #GDBusNodeInfo representing the data.
  *
+ * The introspection XML must contain exactly one top-level
+ * <tag class="starttag">node</tag> element.
+ *
  * Note that this routine is using a
  * <link linkend="glib-Simple-XML-Subset-Parser.description">GMarkup</link>-based
  * parser that only accepts a subset of valid XML documents.