MarkupParseContext
Object Hierarchy:
Description:
[ Compact ]
public class MarkupParseContext
A parse context is used to parse a stream of bytes that you expect to contain marked-up text.
See MarkupParseContext,
MarkupParser, and so on for more details.
Content:
Creation methods:
Methods:
- public bool parse (string text, ssize_t text_len) throws MarkupError
Feed some data to the MarkupParseContext.
- public bool end_parse () throws MarkupError
Signals to the MarkupParseContext that all
data has been fed into the parse context with parse.
- public unowned string get_element ()
Retrieves the name of the currently open element.
- public unowned SList<string> get_element_stack ()
Retrieves the element stack from the internal state of the parser.
- public void get_position (out int line_number, out int char_number)
Retrieves the current line number and the number of the character on
that line.
- public void push (MarkupParser parser, void* user_data)
Temporarily redirects markup data to a sub-parser.
- public void* pop ()
Completes the process of a temporary sub-parser redirection.
- public void* get_user_data ()
Returns the user_data associated with this
.