CdmBuilder.addAttribute

void addAttribute(string name, string ns = "", CdmLocation loc = CdmLocation.init) pure @safe

Adds an attribute to the current tag node.

The current node is used as the attribute value.

Parameters

nameAttribute name.
nsNamespace prefix.
locSource location of the attribute.