Get the value of the attribute at the given index.
Get the value of the attribute with the given name if it exists.