File Poll for XML Files

Hi,

Is there any way to poll XML files from a folder and pass it to a service as a XML string?.

I tried polling port (content handler as application/x-wmflatfile )which is reading file and passing as a BufferedInputStream, but I can not convert the Stream to String using built in or a custom Java service which is causing casting exceptions.

I tried with out the content handler type as blank which is passing a XNL node as input which can not be converted as a document using the built in XML services.

Have any one tried this?. I foudn some old threads are talking about this but can not see a solution.

Thanks,
Jey.