GLib.MarkupParseContext.new
function new(parser: GLib.MarkupParser, flags: GLib.MarkupParseFlags, user_data: void, user_data_dnotify: GLib.DestroyNotify): GLib.MarkupParseContext { // Gjs wrapper for g_markup_parse_context_new() }
Creates a new parse context. A parse context is used to parse marked-up documents. You can feed any number of documents into a context, as long as no errors occur; once an error occurs, the parse context can't continue to parse text (you have to free it and create a new parse context).
- parser
- flags
one or more GLib.MarkupParseFlags
- user_data
user data to pass to GLib.MarkupParser functions
- user_data_dnotify
user data destroy notifier called when the parse context is freed
- Returns
a new GLib.MarkupParseContext