added constructor that allows us to parse a XML string