title: How can I read a bpmn2.0 imported XML file in Java and map in in objects?
body: <p>I need a simpel way with which I can import and read a XML file of type bpmn2 (look at code below). I want to be able to read the file in Java and map it to object. Later I want to convert the XML file to PlantUML format to make an activity diagram. So im basically converting a CPI iFlow to an activity diagram by using the XML file.</p>
  <p>I already looked at:</p>
  <ul>
  <li>Camunda git repo</li>
  <li>Eclpise bpmn2 modeler plugin</li>
  </ul>
  <p>Nothing worked for me yet. Any suggestion?</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;bpmn2:definitions xmlns:bpmn2=&quot;http://www.omg.org/spec/BPMN/20100524/MODEL&quot; xmlns:bpmndi=&quot;http://www.omg.org/spec/BPMN/20100524/DI&quot; xmlns:dc=&quot;http://www.omg.org/spec/DD/20100524/DC&quot; xmlns:di=&quot;http://www.omg.org/spec/DD/20100524/DI&quot; xmlns:ifl=&quot;http:///com.sap.ifl.model/Ifl.xsd&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; id=&quot;Definitions_1&quot;&gt;
  &lt;bpmn2:collaboration id=&quot;Collaboration_1&quot; name=&quot;Default Collaboration&quot;&gt;
  &lt;bpmn2:extensionElements&gt;
  &lt;ifl:property&gt;
  &lt;key&gt;namespaceMapping&lt;/key&gt;
  &lt;value/&gt;
  &lt;/ifl:property&gt;
  &lt;ifl:property&gt;
  &lt;key&gt;allowedHeaderList&lt;/key&gt;
  &lt;value/&gt;
  &lt;/ifl:property&gt;
  &lt;ifl:property&gt;
  &lt;key&gt;httpSessionHandling&lt;/key&gt;
  &lt;value&gt;None&lt;/value&gt;
  &lt;/ifl:property&gt;
  &lt;ifl:property&gt;
  &lt;key&gt;ServerTrace&lt;/key&gt;
  &lt;value&gt;false&lt;/value&gt;\
  </code></pre>
  <p>...</p>