- Index
- »
- xml
- »
- func:xmlAttr
def
func:xmlAttr
xmlAttr(elem, name, checked: true)
Get an attribute from an element by its non-qualified local name. If the attribute is not found and checked is false then return null otherwise throw XErr.
Examples:
xmlRead("<x a='v'/>").xmlAttr("a").xmlVal >> "v" xmlRead("<x/>").xmlAttr("a", false).xmlVal >> null