abc.properties:
engine.xpath=messageHeader/messageId:1234, systemIdentifier/tradeId:4567, .....
I need to read multiple XPATHs from properties: value to be changed at that XPATH.
abc.properties:
engine.xpath=messageHeader/messageId:1234, systemIdentifier/tradeId:4567, .....
I need to read multiple XPATHs from properties: value to be changed at that XPATH.
Once you get the comma-separated properties, use StringTokenizer
:
java.util.StringTokenizer st = new java.util.StringTokenizer(property, ":");
while (st.hasMoreTokens()) {
System.out.println(st.nextToken());
}