a guest Jul 20th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
  8. Ideally, I'd like to be able to reference:
  10. manifest.subject //Math
  11. manifest.subject.grades
  12. manifest.subject.grades[n].items
  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.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand