0 Replies Latest reply on Feb 29, 2016 12:16 PM by mlavie

    How to Create XML Object in JS and Pass to JSX

    mlavie Level 1

      Hi All,


      I am using ExtensionBuilder 3, html5/js/jsx to create an Extension for InDesign CC 2015.1



      I create a large XML in JavaScript. Currently, it is a simple string with de facto XML content (for lack of any better known way to handle this it appears that JS in the Extension environment does not support E4X or any other XML managing technique out of the box).


      I need to pass it to JSX.


      The only way I know how to do this is to take the JavaScript string and pass it as a string parameter to JSX. The JSX then does a call like: myXml = new XML(xmlString)


      This is SLOW - I have an XML string up to 30 MB in length,


      There MUST be a better way!


      All help appreciated.