Examples of processing QTI data with Python.
I attempted to use pyslet
, which was designed for this purpose,
but I found it awkward to use and its documentation unclear. Instead, I tried to use beautifulsoup4
, but I
learned that library doesn't support XPath to query for specific elements of the data. I turned to using the
simple XML processing library lxml
. It has similarities to other XML parsing libraries I've used before, but
it has many unique features of its own.
Note that of the examples below, each does something a little differently. They don't all have the same output.
That's because they were mostly tests to see whether we preferred working with one library over another. Some