+ Start a Discussion
ForceComForceCom 

Parse Xml Response----Urgent!!!!

Hi 

 

I am trying to parse the xml response as found below, but i am facing difficulty in parsing this using Xml Dom class....I am totally stuck here , any help , examples , solutions are  totally appreciated.

 

 
<?xml version="1.0" encoding="UTF-8"?>
<Service_User generator="zend" version="1.0">
<get_user_grades>
<users>
<id_35>
<user>
<id>35</id>
<fullname>SamSmith</fullname>
<username>test@erx.com</username>
<idnumber>003K0000002M9xJIAS</idnumber>
</user>
</id_35>
</users>
<courses>
<id_13>
<course>
<id>13</id>
<fullname>EDTC-5100: Fake Course</fullname>
<shortname>5100</shortname>
<idnumber>
</idnumber>
</course>
</id_13>
</courses>
<gradeitems>
<gradeitem>
<courseid>13</courseid>
<itemtype>mod</itemtype>
<itemname>Assessment 1 - Test Quiz A</itemname>
<itemmodule>quiz</itemmodule>
<iteminstance>10</iteminstance>
<grades>
<grade>
<id>29</id>
<userid>35</userid>
<registrationid></registrationid>
<finalgrade>90.00000</finalgrade>
<gradeletter>A-</gradeletter>
<gradepercent>90.00 %</gradepercent>
<timemodified>1317928200</timemodified>
<deleted>0</deleted>
</grade>
</grades>
</gradeitem>
</get_user_grades>
</Service_User>

 

Thanks
ForceCom