function get_element(): String {
    // Gjs wrapper for g_markup_parse_context_get_element()

Retrieves the name of the currently open element.

If called from the start_element or end_element handlers this will give the element_name as passed to those functions. For the parent elements, see GLib.MarkupParseContext.get_element_stack.

Since 2.2


the name of the currently open element, or null