the render function to write string values to
the render function for writing elements
the root element to render
the newline character to use
whether the output is formatted (adding indentation and newlines)
Produces the complete sequence of attributes to write for the specified tag.
Produces the complete sequence of attributes to write for the specified tag.
Produces the complete sequence of attributes to write for the specified tag.
Produces the complete sequence of attributes to write for the specified tag.
Writes the specified element to the output, on the same line.
Writes the specified element to the output, on the same line.
Writes the specified elements to the output, all on the same line.
Writes the specified elements to the output, all on the same line.
Writes the specified string to the output, on the same line.
Writes the specified string to the output, on the same line.
Writes the specified string to the output, on the same line, with all special XML/HTML characters converted to entities.
Writes the specified span elements to the output, on the same line, while omitting indentation for all text spans written with one of the methods that convert special characters.
Writes the specified string to the output, without any indentation, with all special XML/HTML characters converted to entities.
Writes the specified string to the output, without any indentation, with all special XML/HTML characters converted to entities. This is needed for writing blocks like those enclosed in <pre&rt; tags where whitespace is significant.
Writes an opening tag with attributes derived from both the element parameter and the subsequent tuples.
Writes an opening tag with attributes derived from both the options parameter and the subsequent tuples.
Writes the specified attributes (passed as name-value tuples), including a preceding space character.
Writes the specified attributes (passed as name-value tuples),
including a preceding space character. In cases where the value
is None
nothing will be written to the output.
Writes the specified name and value as an optional attribute, including a preceding space character.
Writes the specified name and value as an optional attribute, including
a preceding space character. In case the value is None
nothing
will be written to the output.
Writes the specified name and value as an attribute, including a preceding space character.
Writes the specified name and value as an optional attribute, including a preceding space character.
Writes the specified name and value as an optional attribute, including
a preceding space character. In case the value is None
nothing
will be written to the output.
Writes an empty tag with attributes derived from both the element parameter and the subsequent tuples.
Writes an empty tag with attributes derived from both the options parameter and the subsequent tuples.
Writes the specified element to the output, on a new line using the current level of indentation.
Writes the specified element to the output, on a new line using the current level of indentation.
Writes the specified elements to the output, each of them on a new line using the current level of indentation.
Writes the specified elements to the output, each of them on a new line using the current level of indentation.
Writes the specified string to the output, on a new line using the current level of indentation.
Writes the specified string to the output, on a new line using the current level of indentation.
Writes the specified string to the output, on a new line using the current level of indentation, with all special XML/HTML characters converted to entities.
Writes the specified element to the output, on a new line and increasing indentation one level to the right.
Writes the specified element to the output, on a new line and increasing indentation one level to the right.
Writes the specified elements to the output, each of them on a new line with the indentation increased one level to the right.
Writes the specified elements to the output, each of them on a new line with the indentation increased one level to the right.
Writes the specified string to the output, on a new line and increasing indentation one level to the right.
Writes the specified string to the output, on a new line and increasing indentation one level to the right.
Writes the specified string to the output, on a new line and increasing indentation one level to the right, with all special XML/HTML characters converted to entities.
Writes a new line character sequence.
Writes a new line character sequence.
Replaces all special XML/HTML characters with entities.
Replaces all special XML/HTML characters with entities.
Executes the specified block while temporarily shifting the indentation level (if it is greater than the currently active one).
Executes the specified block while temporarily shifting the indentation level (if it is greater than the currently active one).
Invokes the specified function after switching off the rendering of any indentation for escaped text elements.
Invokes the specified function after switching off the rendering of any indentation for escaped text elements. The old flag gets restored after invocation.
Base type for writers that produce tag-based output formats like XML or HTML. Extends the base
TextWriter
and adds methods for writing text with special characters as entities and for conveniently writing tags with attributes.