What PHP code will help me parse html data in an xml form?

yuceLbey

New Member
\[code\]FalseAWS.MechanicalTurk.XMLParseErrorThere was an error parsing the XML question or answer data in your request. Please make sure the data is well-formed and validates against the appropriate schema. (1284779956270)Array00\[/code\]I'm trying to send entire emails to mechanical turk, and I am using the mtturk.lib.php library to send this. I tried urlencode and htmlentities to attempt to send it, I'm sure there's a function that will make this code "formatted well enough" to send it through. \[code\]$thequestion = '<a href="http://stackoverflow.com/questions/3740257/linkgoeshere" target="_blank">click here</a>';$QuestionXML = '<QuestionForm xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2005-10-01/QuestionForm.xsd"> <Question> <QuestionContent> <Text>'.$thequestion.'</Text> </QuestionContent> <AnswerSpecification> <FreeTextAnswer/> </AnswerSpecification> </Question></QuestionForm> ';\[/code\]
 
Back
Top