B
Bill WP Brown
I have a field named CntItmPrgs_Interactions which contains Scorm training
data.
I need to be able to extract elements from the field. A sample of the data
is copied below. I need to be able to extract certain elements into seperate
fields for example;
For id="int0" - id0 will become field name
learner_response="" will become the field content
For id="int1" - id1 will become field name
learner_response="" will become the field content
A single field could hold up to 18 IDs. The sample below shows the first 3.
<interactions><interaction index="0" id="int0" timestamp="" weighting="0"
type="choice" latency="" learner_response="2"
result="correct"><objectives/><corr_resps><corr_resp index="0" id=""
pattern="2"/></corr_resps></interaction><interaction index="1" id="int1"
timestamp="" weighting="0" type="choice" latency="" learner_response="2,3"
result="correct"><objectives/><corr_resps><corr_resp index="0" id=""
pattern="2,3"/></corr_resps></interaction><interaction index="2" id="int2"
timestamp="" weighting="0" type="choice" latency="" learner_response="0"
result="correct"><objectives/><corr_resps><corr_resp index="0" id=""
pattern="0"/></corr_resps></interaction><interaction index="3" id="int3"
timestamp="" weighting="0" type="choice" latency="" learner_response="0,2,3"
result="correct"><objectives/><corr_resps><corr_resp index="0" id=""
pattern="0,2,3"/></corr_resps></
data.
I need to be able to extract elements from the field. A sample of the data
is copied below. I need to be able to extract certain elements into seperate
fields for example;
For id="int0" - id0 will become field name
learner_response="" will become the field content
For id="int1" - id1 will become field name
learner_response="" will become the field content
A single field could hold up to 18 IDs. The sample below shows the first 3.
<interactions><interaction index="0" id="int0" timestamp="" weighting="0"
type="choice" latency="" learner_response="2"
result="correct"><objectives/><corr_resps><corr_resp index="0" id=""
pattern="2"/></corr_resps></interaction><interaction index="1" id="int1"
timestamp="" weighting="0" type="choice" latency="" learner_response="2,3"
result="correct"><objectives/><corr_resps><corr_resp index="0" id=""
pattern="2,3"/></corr_resps></interaction><interaction index="2" id="int2"
timestamp="" weighting="0" type="choice" latency="" learner_response="0"
result="correct"><objectives/><corr_resps><corr_resp index="0" id=""
pattern="0"/></corr_resps></interaction><interaction index="3" id="int3"
timestamp="" weighting="0" type="choice" latency="" learner_response="0,2,3"
result="correct"><objectives/><corr_resps><corr_resp index="0" id=""
pattern="0,2,3"/></corr_resps></