How to useXPath with BPMN files in java
I have tried to use XPath with XML files and it works fine. Now I want to use it with BPMN files.
My BPMN file looks sth like this:
I try to get the value of the id attribute of the bpmn2:startEvent node using this line of code:
<bpmn2:startEvent id="StartEvent_1" name="StartProcess">
But it prints me a blank line ... and not the id : StartEvent_1
startEventID = xml.getParameterString("(//bpmn2:startEvent/@id)");
Any suggestion for this plz?