I’m looking to be able to access data from an XML file that would contain file names, text strings, and other layer properties, so that I can set up compositions and automate loading in and arranging elements of compositions. For instance, compositions that would have similar layouts and animations, but graphic elements and descriptive text would be swapped out and change from comp to comp.
This should be very basic XML parsing and on the level of things I’ve done using XML with Lingo in Director. As I’m new to Javascripting and AE scripting (though experienced with C++ and Lingo), my research with books like the O’Reilly Javascript guide and things I’ve found online only talk about XML in Javascript in relation to web browsers. So the sample code includes checks and options for either loading an XML document using Internet Explorer or Firefox. Obviously, I want neither of these options… unless my only recourse is to get my AE script to run another script from a broswer and then return data to AE… but it seems like it should be easier than that.
So when running “found code” such as “document.implementation.createDocument” AE and the ExtendScript Toolkit return errors that “document” is undefined, though that should be a standard Javascript term, no?