I am trying to get a family id from xml only for the product placed in the InDesign document using scripts.
I have a script to get the all family id from xml.
Here is my script,
currFamilyID = new String(currFamilyIDAttr.value);
currFamilyID = currFamilyID + "']";
updatedFamily = xmlTree.xpath("//*[@family_id='"+currFamilyID);
// product = updatedFamily.child("products").children();
if(product!=null)//if product tag exists in updated XML6
This scripts returns all family id from the xml. How shall I get the family id for the product placed in the InDesign document.
Retrieving data ...