EMF XMI



i need to read xmi files using EMF and then count some metrics like
number of classes ect.does anyone have any idea how to start sth like
that?i already read some emf tutorials but i cant find anything
helpful to it.
.