I am looking to develop an application that will either watch a folder for incoming XML documents, or that will run periodically and parse each document that is currently in the inbound folder. I would then like to extract the element values through the xpath, and then insert them into a temporary database. I am having trouble starting because I do not know how to develop this so that it watches a folder or so that it runs through a list of XML documents in a folder. Any help to get me started would be greatly appreciated.
-note: running the application as a scheduled task seems the simplest at this point, but I do not know how to have my application parse XML document 1, and then move onto document 2, etc.