Writes an entire tree structure out to @io.
Writes a document object out to @io. Writes each of the document's prolog
entities, then the tree structure starting at the root note.
Writes encoded version of string.
Writes the end of a start tag.
Starts an element. This may be followed by zero or more calls to attribute.
The start-tag will be closed by the first following call to any method
other than attribute.
Writes an attribute. This is not legal if there have been calls to methods
other than attribute since the last call to startElement, unless inside a
startAttribute, endAttribute pair.
Starts an attribute. This writes the attribute name, '=' and the opening
quote. This provides an alternative to attribute that allows markup to be
included in the attribute value. The value of the attribute is written
using the normal write methods; endAttribute must be called at the end of
the attribute value. Entity and character
references can be written using entityReference and characterReference.
Ends an attribute. This writes the closing quote of the attribute value.
Ends an element. This may output an end-tag or close the current start-tag
as an empty element.
Writes a processing instruction. If data is non-empty a space will be
inserted automatically to separate it from the target.
Writes an entity reference.
Writes a character reference. If n is a string, write the first character
as an integer. Else, use n.