In Go, how would I go about decoding this XML response? I've tried building a custom UnMarshal
method on my Answer
struct, but I'm not having much luck.
<?xml version="1.0"?>
<GetAssignmentResponse>
<Answer><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<QuestionFormAnswers xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2005-10-01/QuestionFormAnswers.xsd">
<Answer>
<QuestionIdentifier>Q1HasEvents</QuestionIdentifier>
<FreeText>no</FreeText>
</Answer>
</QuestionFormAnswers>
</Answer>
</GetAssignmentResponse>