defaultValue if the attribute is absent.getAttr
fn
string getAttr(XmlElement elem, string attrName,
string defaultValue = "")Retrieves an attribute value from an element, returning a default when absent.
Parameters
elem | The element to read the attribute from. |
attrName | The attribute name. |
defaultValue | The value to return when the attribute is missing. Defaults to `""`. |
Returns
The attribute value, or