XMLWriter.openStartTag

Writes the first portion of a start tag to the given output range.

Once openStartTag has been called, writeAttr can be called to add attributes to the start tag. closeStartTag writes the closing portion of the start tag.

Once openStartTag has been called, it is an error to call any function on XMLWriter other than closeStartTag, writeAttr, writeIndent, tagDepth, baseIndent, or output until closeStartTag has been called (basically, any function that involves writing XML that is not legal in a start tag can't be called until the start tag has been properly closed).

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

struct XMLWriter(OR)
void
openStartTag
if (
isOutputRange!(OR, char)
)

Parameters

name string

The name of the start 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