Both. There actually was an individual whom the myth is based upon. However, his name was Robert, not Robin. He was a dishonored nobleman who was forced into stealing for survival. Hence robbing from the rich to give to the poor. The tale was simply embellished over the years.