Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

How to check if an XML Element is on a page item (javascript)

$
0
0

Hi people, i have this book template with script labels that matches my average XML document, but some times my content creation people get fancy and create elements that are not contemplated on my document, when I import these xml files, those contents obviously won't get on the document, so, i need to inspect my xml Tree, and find whichever node isn't on my layout and pour it on a new text frame on the pasteboard, the thing is that i don't know how to inspect an xmlElement that way with javascript.

any help will be highly appreciated! this is an example of the xml file

 

 

<learningXECContent outputclass="sidebar">bla bla bla bla</learningXECContent>

<learningXECContent outputclass="footnote">bla bla bla bla</learningXECContent>

<learningXECContent outputclass="body">bla bla bla bla</learningXECContent>

 

 

i want to loop through this 3 elements and find the one that is not poured into the document.

 

 

TNX!


Viewing all articles
Browse latest Browse all 15932

Trending Articles



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