By comparing the processdefinition.xml itself?
You can always retrieve them using:
getBytes(String) --> the String is what?
the name of the file which contains the processdefinition.
hmm...I get null when calling getFileDefinition() already. Maybe it's because I'm working in the context of an Eclipse Plugin?
What do you think about comparing the nodes?