JXPath is a java library for Object Graph Navigation using the XPath syntax.
This requires the libraries commons-jxpath-1.3.jar, commons-beanutils.jar and commons-logging.jar to be in classpath.
The following example shows accessing indexed properties in JXPath.
//According to the W3C standard index starts from 1 not ZERO
System.out.println(context.getValue("/stringList[1]"));
System.out.println(context.getValue("/stringList[2]"));
System.out.println(context.getValue("/stringList[3]"));
//According to the W3C standard index starts from 1 not ZERO
System.out.println(context.getValue("/stringArray[1]"));
System.out.println(context.getValue("/stringArray[2]"));
System.out.println(context.getValue("/stringArray[3]"));
}