@JJOhYeah
as mentioned above
attributes is giving you an array with all available attribute names
uielement.Get(YourAttributeName).toString let you access the attribute value
uielement.Get(uilement.Attributes(0)).toString would give you the value of the first attribute
with these building blocks you can go within a for each and can collect all attribute values
EDIT:
following component will support on this: