XML: print parents of an element from root


hi everybody,

 

is there way in indesign javascript literally print parents or ancestors (xpath) of element root element of xml file. below screenshot output perl script. , code of perl script is:

 

"my @elt = $twig->get_xpath('//index/index-list');

 

for(my $i=0; $i<scalar(@elt); $i++){

        print $elt[$i]->xpath, "\n";

}"

 

output.png

 

can same kind of output using indesign javascript?



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support