Document fetch and upload

What will be the best way to fetch a document from a shared network location and upload to appian data management system.I want it to be run in background scheduled to run in a frequency. So that the document can later be used to in the application.

The document is either  a pdf or xml, so it will be also helpful if you can tell how we can read  a xml in appian.

Thanks

  Discussion posts and replies are publicly visible