Ok, If you’d go thru the Java API guide you would have seen these methods too along with getKey():
first() and next() both them return booleans.
the first one moves the cursor to the first element and the second moves the cursor to the next element in the cursor.
Using these three constuct a simple code block like so:
IData xyz = IDataUtil.getIData( pipelineCursor, "xyz" );
IDataCursor xyzCursor = xyz.getCursor();
xyzCursor.first();
do{
String docName = xyzCursor.getKey();
...<do what ever you want with the docName>..
} while(xyzCursor.next());
This is just one simple way to do, hope you can improvise from here.
Hope this helps.
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB