Shorthand for attributeOption(expandedName)
.
Returns the value of the attribute with the given expanded name, and throws an exception otherwise.
Returns the value of the attribute with the given expanded name, if any, wrapped in an Option
.
Returns the first found attribute value of an attribute with the given local name, if any, wrapped in an Option
.
Returns the first found attribute value of an attribute with the given local name, if any, wrapped in an Option
.
Because of differing namespaces, it is possible that more than one such attribute exists, although this is not often the case.
The local name, that is, the local part of the EName
The resolved attributes of the element as mapping from ENames to values
The EName of the element
Trait defining the contract for elements that have a EName, as well as attributes with EName keys.
Using this trait (possibly in combination with other "element traits") we can abstract over several element implementations.