title: Asynchronous programming in javascript
body: <p>I have a <code>load()</code> function, Inside that I want to call a function say <code>download()</code>, which download a xml file. Once download is completed , I have to call a function say <code>parseXML()</code> which parses the downloaded xml file. Once the parsing is completed, I have to call another function say <code>processParsedXMLFile()</code>. Can you please guide me how can I achieve this in the simplest possible way ?</p>