Recursively parse attributes