CdmNode.getAttribute

CdmAttribute * getAttribute(string name) pure nothrow @system

Looks up a TAG attribute by name.

Parameters

nameThe attribute name to find.

Returns

Pointer to the matching CdmAttribute, or null.

Looks up an attribute by name and returns a pointer to it.

Lifetime warning: like getMember, the returned pointer points inside the node's internal attribute storage and is invalidated by subsequent attribute appends (addAttribute) that reallocate it. Re-fetch pointers after mutations.

Params: name = The attribute name to look up.

Returns: Pointer to the matching CdmAttribute, or null if not found.