title: Django: how do I render an XML file, then use that xml in a simultaneously rendered view?
body: <p>What I'm trying to do is use a <a href="http://www.simile-widgets.org/timeline/" rel="nofollow">SIMILE timeline</a> in my Django app. The timeline requires it's data in an XML file. Now, I know how to render a view in html. And I can probably figure out how to render a view into XML. But how would one render both, then pull in the XML data to the HTML file if the XML file doesn't exist on disk (since it is being generated by Django)?</p>
  
  <p>Thanks! </p>
  
  <p>Edit: The line that takes the XML is in Javascript, and looks like this:</p>
  
  <pre><code>Timeline.loadXML("/static/example1.xml", function(xml,url) {eventSource.loadXML(xml,url); })
  </code></pre>
  
  <p>I need a path, since inserting the XML directly as a string doesn't work. But no path exists, since the XML file never actually exists on disk.</p>