Thursday, July 21, 2011

Mturk : How do serialize DOM into XML using PHP..?

$QuestionXML = '<QuestionForm xmlns="../QuestionForm.xsd">
                <Question>
                   <QuestionContent>
                      <Text>
                         <![CDATA['.$thequestion.']]>
                      </Text>
                   </QuestionContent>
                <AnswerSpecification>
                   <FreeTextAnswer/>
                </AnswerSpecification>
                </Question>
               </QuestionForm>';

No comments:

Post a Comment