newForXml

fun newForXml(xmlData: String): <Error class: unknown class><DBusNodeInfo>

Parses @xml_data and returns a #GDBusNodeInfo representing the data.

The introspection XML must contain exactly one top-level <node> element.

Note that this routine is using a glib-Simple-XML-Subset-Parser.description-based parser that only accepts a subset of valid XML documents.

Return

A #GDBusNodeInfo structure or null if @error is set. Free with g_dbus_node_info_unref().

Since

2.26

Parameters

xmlData

Valid D-Bus introspection XML.