I am building a specialized xml output script (can't use the built in export) and I have a file in the web root that I can call from the URL domain.com/myscript.php. However, I need to be able to do wordpress DB calls to get to the data. I have read you can load wp-load.php in the script - will that be enough?
Maybe there is some other (better) way of doing this but wordpress sends headers so I can't output a clean xml file without the wordpress clutter (header footer etc).