Hello Brahmarado,
What you did here get the data from Resource(com.sapportals.wcm.repository.IResource res=resourceListIterator.next();) and set the ValueNode(kmFiles=wdThis.wdGetContext().createKMFilesElement();)
My Requirement is search the data from Created/ModifiedBy. please check attached document.
Regards
Vijay Kalluri