parse attribute into hashmap