XmlElement.opBinaryRight

bool opBinaryRight(string op : "in")(string attrName) const @safe

Allows checking if an attribute exists using the in operator.

Parameters

attrNameThe attribute name (QName).

Returns

true if the attribute exists, false otherwise.