what would be the proper way to automate an xml import
===

I've written a script that imports data from an xml file into the mysql database by selecting it from the source disk and uploading it via a button submital. But what if a 3rd party application were to be used to automate this import. Would it be proper to check if a get parameter of a xml path exist and grab its content and import the same way i did before? or is there a better method?

by get parameter i mean like this:

    http://domain.com/import.php?path=externaldomain.com/xml/page.xml

