I need to fetch the InDesign Document content from the XML file which is based on the Structure in Indesign application. I have attached the sample Structure for the reference. Kindly guide me.
var allNodes = app.documents[0].xmlElements[0].evaluateXPathExpression("//category/category_section_id");
for(var i = 0; i < allNodes.length; i++){
alert (allNodes[i].contents.toString());
}