CdmNode.addAttribute
void addAttribute(string name, CdmNode value, string ns = "",
CdmLocation loc = CdmLocation.init) pure @safeAdds an attribute to this TAG node.
The value is heap-allocated and stored as a pointer.
Parameters
name | Attribute name. |
value | Attribute value node. |
ns | Namespace prefix (default empty). |
loc | Source location of the attribute. |