Extract the relationships

I installed camunda plug in at eclipse and now I have to detect and extract the relationships between the diagram elements (sequence flow, message flow, association,…)bpmn whatever the diagram; so i have to use the XML source to do it but i do not even know how to do it.

please help me