get_element_stack


Description:

[ Version ( since = "2.16" ) ]
public unowned SList<string> get_element_stack ()

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

The returned SList is a list of strings where the first item is the currently open tag ( as would be returned by get_element) and the next item is its immediate parent.

This function is intended to be used in the start_element and end_element handlers where get_element would merely return the name of the element that is being processed.

Parameters:

this

a MarkupParseContext

Returns:

the element stack, which must not be modified