Skip to content

GLib.MarkupParser

record (struct)

Any of the fields in MarkupParser can be None, in which case they will be ignored. Except for the error function, any of these callbacks can set an error; in particular the MarkupError.UNKNOWN_ELEMENT, MarkupError.UNKNOWN_ATTRIBUTE, and MarkupError.INVALID_CONTENT errors are intended to be set from these callbacks. If you set an error from a callback, MarkupParseContext.parse will report that error back to its caller.

Refer to the GMarkup documentation to understand the scope and limitations of GMarkupParser. In particular, it is not a full XML parser and it must not be used to process untrusted data.

Properties

start_element

start_element: Any  # read/write

end_element

end_element: Any  # read/write

text

text: Any  # read/write

passthrough

passthrough: Any  # read/write

error

error: Any  # read/write