Results 1 to 1 of 1
  1. #1
    Join Date
    Jan 2013
    Posts
    69
    Rep Power
    0

    Default How to useXPath with BPMN files in java

    Hi everyone!
    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:
    Java Code:
    <bpmn2:startEvent id="StartEvent_1" name="StartProcess">
          <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
    </bpmn2:startEvent>
    I try to get the value of the id attribute of the bpmn2:startEvent node using this line of code:

    Java Code:
    startEventID = xml.getParameterString("(//bpmn2:startEvent/@id)");
    System.out.println(startEventID);
    But it prints me a blank line ... and not the id : StartEvent_1

    Any suggestion for this plz?
    Last edited by blertadhimitri; 11-23-2013 at 10:12 PM.

Similar Threads

  1. Replies: 0
    Last Post: 12-29-2012, 08:59 PM
  2. Replies: 2
    Last Post: 06-11-2011, 01:54 PM
  3. Replies: 8
    Last Post: 07-30-2010, 05:47 PM
  4. conversion of java .class files to .java files
    By kotturupraveen in forum New To Java
    Replies: 2
    Last Post: 06-09-2008, 12:58 PM
  5. Bpmn/bpel
    By Heather in forum Advanced Java
    Replies: 2
    Last Post: 06-29-2007, 02:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •