Guest User

Untitled

a guest
Jul 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. This is an Educational Testing Service XML format based on the QTI specification.
  2. As you can see below, this XML spec nests <item> tags that essentially mean different
  3. things. In this case, the first <item> tag level below organization is what I would
  4. term "subject", the second level is what I would term "grade", and the third level is
  5. the thing I actually reference as an "item". I need to capture the subject and grade
  6. information, but when I process "items", I only want those ones at the third level.
  7.  
  8. Ideally, I'd like to be able to reference:
  9.  
  10. manifest.subject //Math
  11. manifest.subject.grades
  12. manifest.subject.grades[n].items
  13.  
  14. But I can't figure out how to write the class definitions for HappyMapper use,
  15. because everything's an <item>. The different <item> tags have attributes that
  16. appear to reliably identify the pieces, but not sure how to use that to my
  17. advantage.
Add Comment
Please, Sign In to add comment