Unfortunately I can't spend much time on it, here are notes if you want to
salvage it.
- The XMI file you are using is in version 1.1. For this version class
XMI_V_1.1 is instantiated which does not have its own function
`collectTagDefinitions`. It uses function defined in class XMI_1.0 which is
dummy. I'd suggest to copy the function from XMI_1.2 to class XMI_1.1 and see
what happens. I tried changing the version of xmi document from 1.1 to 1.2.
And it generates run time error which you can easily reproduce by changing
the version="1.1" to version="1.2" in your xmi file. Rest will take time to
debug.
As far as parsing is concerned a simple module is available here
http://pyxmi.sourceforge.net/tutorial.html . It parses your file without any
glitch. The function you might me interested is `classSociety` (Example 4).
Attached is a file which has some trivial code to get started. You can easily
fetch `DOM` for this XMI.
Last to lines in this file will call the IPython shell, you can play with
classes object to see what can be done with it.
--
Dilawar
Dept. of EE, IIT Bombay
Bhalla Lab, NCBS Bangalore