Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Getting first occurrence of XML elements

$
0
0

Hello Vandy,

 

I do not know how your XML structure is built up, but perhaps in this way:

 

var _firstXref = _root.evaluateXPathExpression("//Story[position()=1]/xref[@rid][posit ion()=1]");

 

 

Roland


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>