Load xml from Web into an InDesign document
Create a new document in InDesign and run this sample script. After running it, you should have the xml-file imported into the active document like so:
Feel free to change the path to the XML file to be downloaded:
Special thanks to jasonr16384347 from the Adobe InDesign scripting forum for updating this old example back in 2010.