Method

GLibMarkupParseContextget_element

Declaration

const gchar*
g_markup_parse_context_get_element (
  GMarkupParseContext* context
)

Description

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 g_markup_parse_context_get_element_stack().

Available since:2.2

Return value

Returns: utf8
 

The name of the currently open element, or NULL.

 The data is owned by the instance.
 The string is a NUL terminated UTF-8 string.