Gio.DBusNodeInfo.new_for_xml
function new_for_xml(xml_data: String): Gio.DBusNodeInfo {
// Gjs wrapper for g_dbus_node_info_new_for_xml()
}
Parses xml_data and returns a Gio.DBusNodeInfo representing the data.
The introspection XML must contain exactly one top-level <node> element.
Note that this routine is using a [GMarkup][glib-Simple-XML-Subset-Parser.description]-based parser that only accepts a subset of valid XML documents.
Since 2.26
- xml_data
Valid D-Bus introspection XML.
- Returns
A Gio.DBusNodeInfo structure or null if @error is set. Free with Gio.DBusNodeInfo.prototype.unref.