Hi Jacob Thank you for your reply.
Yes, I have been searching the xmlbeans API but could not find one. I did use the timestamps pre and post query execution but I am not getting the same result everytime. My project is to optimize an xquery depending on the target constraints. So I need to show that my optimized xquery executes faster than the unoptimized xquery. Can you please suggest any other procedure to get the execution time. One more question. Is there any limitation on the size of the xml source file? Can I use source files of size 10Mb or more? Thank you Tej