Extract styles info from styles.xml ?

Hello,
I am a French teacher (sorry for my english skills) and I teach Libreoffice (writer, calc, impress) to my students.
The number of students recently has doubled so it takes really long time to evaluate their work. I am not able anymore to manually go into each file to check that all styles have been set up as required.

It would be very convenient to be able to extract from styles.xml (included in the odt file) all the styles that have been modified from the default file.
I could then import all these information into calc and compute a mark for each student.

I have looked at styles.xml but i don’t really know how the format works and if there is a simple way to do what I need.

Any hints ?

You may have more luck at http://forum.openoffice.org/en/forum/ - but keep in mind that even if you extract the styles.xml files, you still need a way to view the content and not just the tags.

I was wondering if this might be possible using Basic Macro so tried to create a macro based on info from Andrew Pitonyak’s Open Office Macros Explained.

It’s possible to list all the style properties and values, but for those properties that are Objects I was not able to list the property values of those objects.

Attached Calc file with macro if you’d like to see what was possible.

ListDocStyles.ods