Parser.render_xml()

Finish parsing (if needed) and render as XML.

Usage

Source

Parser.render_xml(
    *,
    sourcepos=False,
)

Parameters

sourcepos: bool = False
Include sourcepos attributes. Default False.

Returns

str
The rendered XML string.