XmlStreamWriter.attribute

void attribute(string qname, string value) @safe

Writes an attribute on the currently open start tag.

Parameters

qnameAttribute name.
valueAttribute value.

Throws

XmlException if no start tag is open.