I've tried searching and found similar issues but can't seem to get this working. I need to extract some data from an XML sent as a POST variable from a website. In the following code, I need to extract the response for variable name SCHOOLDFE but just can't find out how. Thanks in advance guys!
--------------------------
<quizReport xsi:schemaLocation=\"http://ift.tt/1iCaPyu quizReport.xsd\" version=\"1\" xmlns=\"http://ift.tt/1iCaPyu\" xmlns:xsi=\"http://ift.tt/ra1lAU\">
<quizSettings quizType=\"graded\" maxScore=\"10\" maxNormalizedScore=\"100\" timeLimit=\"0\">
<passingPercent>0.8</passingPercent>
</quizSettings>
<summary score=\"0\" percent=\"0\" time=\"1\">
<variables>
<variable name=\"USER_NAME\" title=\"Name\" value=\"JOHN\"/>
<variable name=\"CLASS\" title=\"Class\" value=\"6M\"/>
<variable name=\"SCHOOLDFE\" title=\"School DFE\" value=\"2112377\"/>
</variables>
</summary>
<questions>
<sequenceQuestion id=\"{7B5A5595-5F1E-415B-BA8C-8C700372FC4F}\" status=\"incorrect\" maxPoints=\"10\" maxAttempts=\"1\" awardedPoints=\"0\" usedAttempts=\"1\">
<direction>Arrange the following items in the correct order</direction>
<answers>
<answer userDefinedPosition=\"1\">Item 1</answer>
<answer userDefinedPosition=\"0\">Item 2</answer>
<answer userDefinedPosition=\"2\">Item 3</answer>
<answer userDefinedPosition=\"3\">Item 4</answer>
</answers>
</sequenceQuestion>
</questions>
</quizReport>
No comments:
Post a Comment