MarkupParseContext.getElementStack

string[] getElementStack()

Retrieves the element stack from the internal state of the parser.

The returned #GSList is a list of strings where the first item is the currently open tag (as would be returned by [glib.markup_parse_context.MarkupParseContext.getElement]) and the next item is its immediate parent.

This function is intended to be used in the start_element and end_element handlers where [glib.markup_parse_context.MarkupParseContext.getElement] would merely return the name of the element that is being processed.

Returns

the element stack, which must not be modified