XMLWriter.writeStartTag

Writes a start tag with no attributes.

This is equivalent to calling openStartTag immediately followed by closeStartTag.

It is an error to call writeStartTag after the end tag for the root element has been written.

  1. void writeStartTag(string name, EmptyTag emptyTag, Newline newline)
  2. void writeStartTag(string name, Newline newline, EmptyTag emptyTag)
    struct XMLWriter(OR)
    void
    writeStartTag
    if (
    isOutputRange!(OR, char)
    )

Parameters

name string

The name of the start tag.

emptyTag EmptyTag

Whether the start tag will be empty (i.e. terminated with "/>" so that there is no corresponding end tag).

newline Newline

Whether a _newline followed by an indent will be written to the output range before the start tag.

Throws

XMLWritingException if the given _name is not a valid XML tag _name.

See Also

Meta