I was searching around and I can't seem to find an answer for this..

I was writing an ajax script and I tried loading an xml file in a separate folder. However it wouldnt work... it would only work when the file was is in the same directory.. is there a way to keep the file in a separate directory or does it always have to be in the same directory as the script?