title: Indesign (IDML file) Automation using HTML5 and Javascript
body: <p>I’m working on IDML file automation. My requirement is to showcase an IDML template in an HTML5 editor.</p>
  
  <p>I have a simple <code>TextFrame</code> with <em>Hello World</em> text. I saved the file as: <code>sample.idml</code>. Then, I unzipped <code>sample.idml</code> and got a few files. Went to the <code>stories</code> folder and opened: <code>story_d8.xml</code>.</p>
  
  <p>Since I’m a developer, I did this using Java and exposed the file path as a REST call. The biggest stopping point is: the <em>jQuery</em>/<em>AngularJS</em> script is saying: <strong>invalid file</strong>.</p>
  
  <p>Can someone suggest options to address the points below:</p>
  
  <ol>
  <li><p>Get <code>Content</code> data using JavaScript (<em>jQuery</em>/<em>AngularJS</em>)</p></li>
  <li><p>Put "Demo Hello" in the <code>Content</code> and regenerate <code>story_d8.xml</code> (using JavaScript)</p></li>
  <li><p>Is this the correct approach? Are there alternative to this approach?</p></li>
  </ol>