I am working on XML with InDesign CS4. I need to do some automation stuffs for those. In my InDesign document, the XML tags (Eg. <ab:para>, <ab:figure> & etc…) name contains colon characters. If i try to loop these tags through gluecode using XPath expression, the script throws me a error like 'Adobe InDesign cannot processXPath expression'.
Can anyone look into this and suggest me a right solution.
Thanks in advance.
this.xpath = "//para";
this.xpath = "//figure";
Try this without the XML namespace in XPath Expression. it's not tested code, but it may works.
No need to give namespace [ab:] in xpath expression, you can give element name without namespace it will work.
Thank you Nagaraj and Dev. It is working fine now.