Hello. As you will find out by my question, I'm not really a Pro and I hope one of you can help me. I can imagine that the solution is very easy. I don't want to import a xml file into InDesign but read the xml information directly in my script and use as variables.
I.E a xml file lying on my Desktop:
<?xml version="1.0" ?>
And I want a variable with the content "Burger" and one with the content "name" (read from the attribute).
I'm really happy for every helping hint I can get.
file = File(path);
xml = XML(s);
This wil give you your whole XML as an object. You can navigate the
XML object using E4X. (If you are not familiar with E4X, do a google
Does E4X take away the neccesity for having XML rules?
There's two distinct XML related family of objects.
2) InDesign XML i.e. Document.xmlElements
E4X is for JS XML
XML rules is for InDesign XML